Skip to content
Snippets Groups Projects
urls.py 941 B
Newer Older
Dorian Lesbre's avatar
Dorian Lesbre committed
from django.contrib.sitemaps.views import sitemap
Dorian Lesbre's avatar
Dorian Lesbre committed
from django.views.generic import RedirectView
from django.urls import path, include
Dorian Lesbre's avatar
Dorian Lesbre committed

from home import views
Dorian Lesbre's avatar
Dorian Lesbre committed
sitemaps = {"static_pages": views.StaticViewSitemap}

urlpatterns = [
	path('', views.HomeView.as_view(), {"template": "home.html"}, name = 'home'),
	path('inscription/', views.RegisterView.as_view(), name = 'inscription'),
	path('desinscription/', views.UnregisterView.as_view(), name="desinscription"),
	path('activites/', views.ActivityView.as_view(), {"template":"activites.html"}, name = 'activites'),
	path('faq/', views.FAQView.as_view(), {"template":"faq.html"}, name = 'FAQ'),
Dorian Lesbre's avatar
Dorian Lesbre committed
	path('favicon.ico', RedirectView.as_view(url='/static/imgs/favicon.ico')),
Dorian Lesbre's avatar
Dorian Lesbre committed
	path('metrics/', views.MetricsView.as_view(), name="metrics"),
Dorian Lesbre's avatar
Dorian Lesbre committed
	path(
		'sitemap.xml', sitemap, {'sitemaps': sitemaps},
		name='django.contrib.sitemaps.views.sitemap'
	),
	path('accounts/', include("accounts.urls")),