forked from DGNum/gestioCOF
User-friendly redirect : / → /gestion
This commit is contained in:
parent
2b72f3b40b
commit
e401303a08
1 changed files with 4 additions and 1 deletions
|
@ -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),
|
||||
]
|
||||
|
|
Loading…
Reference in a new issue