#27130: Cannot use Django Templates in Standalone Mode
---------------------------------+--------------------------------------
     Reporter:  AlJohri          |                    Owner:  nobody
         Type:  Bug              |                   Status:  closed
    Component:  Template system  |                  Version:  1.10
     Severity:  Normal           |               Resolution:  invalid
     Keywords:                   |             Triage Stage:  Unreviewed
    Has patch:  0                |      Needs documentation:  0
  Needs tests:  0                |  Patch needs improvement:  0
Easy pickings:  0                |                    UI/UX:  0
---------------------------------+--------------------------------------

Comment (by AlJohri):

 Replying to [comment:4 timgraham]:
 > Yes, built-ins isn't the correct term. I think you won't be able to load
 anything from `django.templatetags` (cache, i18n, etc.)
 >
 > Anyway, I think you're hitting that exception because you're missing a
 [https://docs.djangoproject.com/en/stable/topics/settings/#calling-django-
 setup-is-required-for-standalone-django-usage django.setup()] call that's
 required for standalone usage.

 Ah, thank you!

 Might want to add a note to the documentation similar to this in v1.7:
 https://docs.djangoproject.com/en/1.7/ref/templates/api/#configuring-the-
 template-system-in-standalone-mode

--
Ticket URL: <https://code.djangoproject.com/ticket/27130#comment:5>
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/065.262587cef744e2dbd3c4a5dcc18ada60%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to