March 2020
Intermediate to advanced
608 pages
17h 17m
English
Once again, we start with the core app that should be set in INSTALLED_APPS which contains the templatetags package.
Also, make sure that you have the request context processor added to the context_processors list in the TEMPLATES settings under OPTIONS, as follows:
# myproject/settings/_base.pyTEMPLATES = [ { "BACKEND": "django.template.backends.django.DjangoTemplates", "DIRS": [os.path.join(BASE_DIR, "myproject", "templates")], "APP_DIRS": True, "OPTIONS": { "context_processors": [ "django.template.context_processors.debug", "django.template.context_processors.request", "django.contrib.auth.context_processors.auth", "django.contrib.messages.context_processors.messages", "django.template.context_processors.media", "django.template.context_processors.static" ...