#19966: Allow for silent or conditional loading of custom template tags
---------------------------------+--------------------
     Reporter:  anonymous        |      Owner:  nobody
         Type:  New feature      |     Status:  new
    Component:  Template system  |    Version:  1.5
     Severity:  Normal           |   Keywords:
 Triage Stage:  Unreviewed       |  Has patch:  0
Easy pickings:  0                |      UI/UX:  0
---------------------------------+--------------------
 In an effort to create a modular project I have included all custom tags /
 filters related to an app in that app's templatetags folder as instructed.

 Should I ever want to use those tags in any general project templates
 (such as base templates or just any plain template which doesn't belong to
 that specific app) I must ensure that app is installed in the project
 settings. While I understand the need for the app to be installed for the
 tag to work I still want my project to remain modular and not break should
 I run {% load some_custom_tag_lib %} while the app is "turned-off".

 It would be nice if there was some way to load the tag and use it silently
 (meaning it won't break if the app isn't loaded) or a way to condition the
 loading and usage of the tag if that app being installed while skipping it
 if the app isn't installed.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/19966>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to