Skip to content

Update index.rst: fix context processor path #260

Open
jeromecc wants to merge 8 commits intobarseghyanartur:old_masterfrom
jeromecc:master
Open

Update index.rst: fix context processor path #260
jeromecc wants to merge 8 commits intobarseghyanartur:old_masterfrom
jeromecc:master

Conversation

@jeromecc
Copy link

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

Copy link
Owner

@barseghyanartur barseghyanartur left a 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 %}
Copy link
Owner

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 %}
Copy link
Owner

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.

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