www-bocal/mainsite/urls.py

20 lines
590 B
Python
Raw Normal View History

2017-09-21 14:00:10 +02:00
from django.conf.urls import url
2017-09-21 19:01:47 +02:00
from . import views
2017-09-21 14:00:10 +02:00
urlpatterns = [
2019-01-19 17:28:24 +01:00
url(r"^$", views.HomeView.as_view(), name="homepage"),
url(r"^robots.txt$", views.robots_view, name="robots"),
url(r"^ecrire$", views.WriteArticleView.as_view(), name="write_article"),
url(
r"^speciaux/",
views.SpecialPublicationsView.as_view(),
name="special_publications",
),
url(
r"^(?P<year>\d{4})-(?P<nYear>\d{4})/",
views.YearView.as_view(),
name="year_view",
),
url(r"^latest$", views.latestPublication, name="latestPublication"),
2017-09-21 14:00:10 +02:00
]