khaganat-web/khaganat/urls.py
Rodolphe Breard ab4eb7414c Add basic user functionalities
Users need to register, login, logout and reset their password.
2018-02-04 01:36:39 +01:00

32 lines
1.1 KiB
Python

"""khaganat URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based views
1. Add an import: from other_app.views import Home
2. Add a URL to urlpatterns: path('', Home.as_view(), name='home')
Including another URLconf
1. Import the include() function: from django.urls import include, path
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
"""
from django.views.generic.base import RedirectView
from django.conf.urls.i18n import i18n_patterns
from django.contrib import admin
from django.urls import include, path
from pages.views import index
urlpatterns = [
path('', index),
]
urlpatterns += i18n_patterns(
path('', index),
path('admin/', admin.site.urls),
path('account/', include('neluser.urls')),
path('page/', include('pages.urls')),
path('logs/', include('logs.urls')),
)