1
0
mirror of https://gitlab.crans.org/bde/nk20 synced 2024-11-29 20:02:59 +00:00
nk20/note_kfet/urls.py

25 lines
871 B
Python
Raw Normal View History

2019-07-08 09:08:07 +00:00
# -*- mode: python; coding: utf-8 -*-
# Copyright (C) 2018-2019 by BDE ENS Paris-Saclay
# SPDX-License-Identifier: GPL-3.0-or-later
2019-07-07 20:49:02 +00:00
from django.contrib import admin
2019-07-08 09:08:07 +00:00
from django.urls import path, include
from django.views.generic import RedirectView
2019-07-07 20:49:02 +00:00
urlpatterns = [
2019-07-17 11:34:07 +00:00
# Dev so redirect to something random
path('', RedirectView.as_view(pattern_name='note:transfer'), name='index'),
# Include project routers
path('note/', include('note.urls')),
2019-07-08 09:08:07 +00:00
# Include Django Contrib and Core routers
# admin/login/ is redirected to the non-admin login page
path('i18n/', include('django.conf.urls.i18n')),
path('accounts/', include('django.contrib.auth.urls')),
path('accounts/profile/',
2019-07-16 07:05:51 +00:00
RedirectView.as_view(pattern_name='index')),
2019-07-08 09:08:07 +00:00
path('admin/doc/', include('django.contrib.admindocs.urls')),
2019-07-07 20:49:02 +00:00
path('admin/', admin.site.urls),
]