www-bocal/mainsite/urls.py

12 lines
411 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 = [
url(r'^$', views.HomeView.as_view(), name='homepage'),
url(r'^ecrire$', views.WriteArticleView.as_view(), name='write_article'),
url(r'^speciaux/', views.SpecialPublicationsView.as_view(),
name='special_publications'),
2017-09-21 14:00:10 +02:00
url(r'^(?P<year>\d{4})-(?P<nYear>\d{4})/',
2017-09-21 19:01:47 +02:00
views.YearView.as_view(), name='year_view'),
2017-09-21 14:00:10 +02:00
]