manuels-scolaires/manuels_collection/urls.py

28 lines
967 B
Python
Raw Normal View History

2018-05-21 19:28:36 +02:00
"""manuels_collection 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.contrib import admin
2021-07-10 12:11:58 +02:00
from django.urls import include, path
2018-05-21 19:28:36 +02:00
2018-05-21 21:03:08 +02:00
from manuels.views import HomePageView
2021-07-10 12:11:58 +02:00
admin.site.site_header = "Manuels scolaires - Administration"
2018-06-02 11:40:33 +02:00
2018-05-21 19:28:36 +02:00
urlpatterns = [
2021-07-10 12:11:58 +02:00
path("admin/", admin.site.urls),
path("", HomePageView.as_view(), name="home_page"),
path("", include("manuels.urls")),
2018-05-21 19:28:36 +02:00
]