Django-nojs is een eenvoudige toepassing om aan te sluiten op "javascript" gebeurtenissen beheren.
installatie
Nojs toevoegen aan je INSTALLED_APPS:
INSTALLED_APPS = (
& Nbsp; ...,
& Nbsp; ...,
& Nbsp; 'nojs',
& Nbsp;)
Django.core.context_processors.request en django.core.context_processors.static toevoegen aan uw TEMPLATE_CONTEXT_PROCESSORS:
TEMPLATE_CONTEXT_PROCESSORS = ("django.contrib.auth.context_processors.auth",
& Nbsp; "django.core.context_processors.debug",
& Nbsp; "django.core.context_processors.i18n",
& Nbsp; "django.core.context_processors.media",
& Nbsp; "django.core.context_processors.static",
& Nbsp; "django.core.context_processors.request",
& Nbsp; "django.contrib.messages.context_processors.messages")
In uw sjablonen:
{% Checkjs%}
Eisen
- Python
Reacties niet gevonden