Monday, May 22, 2017

Realy not documented cache template if not DEBUG

Hell, I spent 2 hours to understand why, when debug = False I have cached templates!!!??!

I have not found in documentation any mention that NEW! features
class Engine(object):

if loaders is None:
loaders = ['django.template.loaders.filesystem.Loader']
if app_dirs:
loaders += ['django.template.loaders.app_directories.Loader']
if not debug: # !?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?v
loaders = [('django.template.loaders.cached.Loader', loaders)] #!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?

What is this nonsense?

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/3369e14f-0a9c-44aa-b92e-4662a3ea146f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment