mirror of
https://gitlab.crans.org/bde/nk20
synced 2024-11-26 18:37:12 +00:00
26 lines
843 B
Python
26 lines
843 B
Python
# -*- mode: python; coding: utf-8 -*-
|
|
# Copyright (C) 2018-2019 by BDE ENS Paris-Saclay
|
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
from django.contrib import admin
|
|
from django.urls import path, include
|
|
from django.views.generic import RedirectView
|
|
|
|
urlpatterns = [
|
|
# Dev so redirect to something random
|
|
path('', RedirectView.as_view(pattern_name='note:transfer'), name='index'),
|
|
|
|
# Include project routers
|
|
path('note/', include('note.urls')),
|
|
|
|
# Include Django Contrib and Core routers
|
|
path('i18n/', include('django.conf.urls.i18n')),
|
|
path('accounts/', include('member.urls')),
|
|
path('accounts/', include('django.contrib.auth.urls')),
|
|
path('admin/doc/', include('django.contrib.admindocs.urls')),
|
|
path('admin/', admin.site.urls),
|
|
|
|
# Include Django REST API
|
|
path('api/', include('api.urls')),
|
|
]
|