User-friendly redirect : / → /gestion

This commit is contained in:
Martin Pépin 2020-08-30 18:08:02 +02:00
parent 2b72f3b40b
commit e401303a08
No known key found for this signature in database
GPG key ID: E7520278B1774448

View file

@ -6,10 +6,13 @@ from django.conf.urls.i18n import i18n_patterns
from django.conf.urls.static import static
from django.contrib import admin
from django.urls import include, path
from django.views.generic.base import RedirectView
# Website administration (independent from installed apps)
admin.autodiscover()
urlpatterns = [
# Redirection / → /gestion, only useful for developpers.
path("", RedirectView.as_view(url="gestion/")),
# Website administration (independent from installed apps)
path("admin/doc/", include("django.contrib.admindocs.urls")),
path("admin/", admin.site.urls),
]