-
Notifications
You must be signed in to change notification settings - Fork 112
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
Update index.rst: fix context processor path #260
base: old_master
Are you sure you want to change the base?
Conversation
django.core.context_processors: Built-in template context processors have been moved to django.template.context_processors. Source: https://docs.djangoproject.com/en/dev/releases/1.8/#django-core-context-processors
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please, see my remarks.
@@ -1,4 +1,5 @@ | |||
{% load i18n fobi_tags %} | |||
{% load i18n %} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are they loaded one per line? Templates are slow. Loading all the modules in one line makes them go a little bit faster.
@@ -1,5 +1,7 @@ | |||
{% extends fobi_theme.master_base_template %} | |||
|
|||
{% load i18n %} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we don't use i18n
, we shouldn't load it.
django.core.context_processors:
Built-in template context processors have been moved to django.template.context_processors.
Source: https://docs.djangoproject.com/en/dev/releases/1.8/#django-core-context-processors