www-bocal/mainsite/urls.py
2017-09-22 13:44:36 +02:00

11 lines
332 B
Python

from django.conf.urls import url
from . import views
app_name = 'manisite'
urlpatterns = [
url(r'^$', views.HomeView.as_view(), name='homepage'),
url(r'^ecrire$', views.WriteArticleView.as_view(), name='write_article'),
url(r'^(?P<year>\d{4})-(?P<nYear>\d{4})/',
views.YearView.as_view(), name='year_view'),
]