Install django-js-reverse

This commit is contained in:
Ludovic Stephan 2019-11-29 14:50:44 +01:00
parent 091208b66c
commit 4e15ab8041
3 changed files with 13 additions and 1 deletions

View file

@ -64,7 +64,8 @@ INSTALLED_APPS = [
"django.contrib.sessions",
"django.contrib.sites",
"django.contrib.messages",
"cof.apps.IgnoreSrcStaticFilesConfig", # Must be before django admin
"cof.apps.IgnoreSrcStaticFilesConfig",
# Must be before django admin
# https://github.com/infoportugal/wagtail-modeltranslation/issues/193
"wagtail_modeltranslation",
"wagtail_modeltranslation.makemigrations",
@ -102,6 +103,7 @@ INSTALLED_APPS = [
"kfet.auth",
"kfet.cms",
"gestioncof.cms",
"django_js_reverse",
]
@ -259,3 +261,8 @@ FORMAT_MODULE_PATH = "cof.locale"
WAGTAIL_SITE_NAME = "GestioCOF"
WAGTAIL_ENABLE_UPDATE_CHECK = False
TAGGIT_CASE_INSENSITIVE = True
# Django-js-reverse settings
JS_REVERSE_JS_VAR_NAME = "django_urls"
# Quand on aura namespace les urls...
# JS_REVERSE_INCLUDE_ONLY_NAMESPACES = ['k-fet']