question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Usage of "include" in distill_url?

See original GitHub issue

Hey @meeb I’ve been using django_distill in a project and we want to include another package that uses django_distill using include(). But I’m getting failed to do that because instead of passing a view_func example MyVIew.as_view(), I’m passing a tuple i.e. include(package_name.urls). Can you please help me out? Is there any way I can get that possible using include() ?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
meebcommented, Jul 27, 2019

Hi, sorry for the delay. Yes this looks like I could patch it to stop this occurring, I’ll include a fix in the next release. The fix won’t immediately resolve it for you though until the upstream projects you are include()ing update to the newer release, but your work-arounds are perfectly fine as well. Thanks for reporting it.

0reactions
meebcommented, Apr 16, 2020

I’ve finally had time to look at this. While possible to handle I think I’m going to leave it raising an error. Technically you are using distill in the wrong place by including a sub-project of URLs and attempting to render it. This isn’t how distill works, you use distill on single views not a group of included views. It could be patched to handle the event without error-ing, but, it probably should error really in this situation. Your work-around of just using url() is the correct answer. Thanks for reporting.

Read more comments on GitHub >

github_iconTop Results From Across the Web

#INCLUDE - Oracle Help Center
You can reference the appropriate include file depending on which printer you want to use. INCLUDE files can be nested up to four...
Read more >
tmr-issue23/07-supercompilers.tex at master · ezyang/tmr-issue23 ...
We list here some existing supercompilers. The list is not exhaustive; it contains implementations which have interesting features,. are publicly accessible,.
Read more >
{ } Include file reference - Progress Software
A name/value pair used by include-file as a named argument . The argument-name is the name of the argument you want to pass...
Read more >
DeepHarmony: A deep learning approach to contrast ... - NCBI
We propose a method of contrast harmonization, called Deep-Harmony, which uses a U-Net-based deep learning architecture to produce images with ...
Read more >
Analysing Deep Reinforcement Learning Agents Trained with ...
augmentation to RL environments has been used to success- fully train agents for a range of different robots, including.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found