Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TEMPLATE_DEBUG has been deprecated in django 1.8 #121

Merged
merged 6 commits into from
Nov 5, 2015
Merged

TEMPLATE_DEBUG has been deprecated in django 1.8 #121

merged 6 commits into from
Nov 5, 2015

Conversation

yonaka43
Copy link
Contributor

In newer version of django, debug option is written in the OPTIONS of TEMPLATES instead.

@@ -40,8 +40,16 @@ def leaflet_js(plugins=None):
plugin_names = _get_plugin_names(plugins)
with_forms = PLUGIN_FORMS in plugin_names or PLUGIN_ALL in plugin_names
FORCE_IMAGE_PATH = app_settings.get('FORCE_IMAGE_PATH')

if hasattr(settings,'TEMPLATE_DEBUG'):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: missing whitespace after comma

@leplatrem
Copy link
Collaborator

Thanks for this contribution !

There is just a formatting error, and the tests will pass !

leplatrem added a commit that referenced this pull request Nov 5, 2015
TEMPLATE_DEBUG has been deprecated in django 1.8
@leplatrem leplatrem merged commit 29a9323 into makinacorpus:master Nov 5, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants