From 28b67ad39af15d27bad7e55a0ae7fafe91139239 Mon Sep 17 00:00:00 2001 From: Yaroslsav-95 Date: Wed, 31 Jan 2018 08:27:11 +0300 Subject: Initial --- weblog/urls.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 weblog/urls.py (limited to 'weblog/urls.py') diff --git a/weblog/urls.py b/weblog/urls.py new file mode 100644 index 0000000..643e8c7 --- /dev/null +++ b/weblog/urls.py @@ -0,0 +1,12 @@ +from django.conf.urls import url +from . import views + +app_name = 'weblog' +urlpatterns = [ + url(r'^$', views.Index, name='Index'), + url(r'^change-language/(?P[-\w]+)/$', views.ChangeLanguage, name='ChangeLanguage'), + url(r'^(?P[0-9]{4})/$', views.Index, name='ArchiveIndex'), + url(r'^(?P[0-9]{4})/(?P[0-9]{1,2})/$', views.Index, name='ArchiveIndex'), + url(r'^(?P[-\w]+)/$', views.Index, name='CategoryIndex'), + url(r'^(?P[-\w]+)/(?P[-\w]+)/$', views.PostView, name='PostView'), +] \ No newline at end of file -- cgit v1.2.3