#27130: Allow using the DjangoTemplates engine without configuring settings
--------------------------------------+------------------------------------
     Reporter:  Al Johri              |                    Owner:  nobody
         Type:  Cleanup/optimization  |                   Status:  new
    Component:  Template system       |                  Version:  master
     Severity:  Normal                |               Resolution:
     Keywords:                        |             Triage Stage:  Accepted
    Has patch:  0                     |      Needs documentation:  0
  Needs tests:  0                     |  Patch needs improvement:  0
Easy pickings:  0                     |                    UI/UX:  0
--------------------------------------+------------------------------------

Comment (by reficul31):

 For testing the code, is it possible to add a method to @override.settings
 that removes all the settings so that the test case can run without them?
 Or another solution can be to individually override each setting used by
 the template tag and set it to NULL and test. Eg. The time filter uses
 settings.TIME_FORMAT to get the time in the required format. It might be
 possible to set @setting.override(TIME_FORMAT=NULL) or something similar.

--
Ticket URL: <https://code.djangoproject.com/ticket/27130#comment:10>
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.005f3f66400bb767003ae1b3becccfa0%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to