diff options
author | Yaroslsav-95 <contact@yaroslavps.com> | 2018-06-22 20:20:50 +0300 |
---|---|---|
committer | Yaroslsav-95 <contact@yaroslavps.com> | 2018-06-22 20:20:50 +0300 |
commit | 8fd79ffe610d4fce69913fd167d437322347c3d4 (patch) | |
tree | aff5144c6c04ca91f62dfeaa6fc9a9c9323248df /weblog/urls.py | |
parent | 2f255efc8f662fa29e8112e6eb9642f33af25ad9 (diff) | |
download | w3blog-8fd79ffe610d4fce69913fd167d437322347c3d4.tar.gz w3blog-8fd79ffe610d4fce69913fd167d437322347c3d4.zip |
read post in another language (templates missing links)
Diffstat (limited to 'weblog/urls.py')
-rwxr-xr-x | weblog/urls.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/weblog/urls.py b/weblog/urls.py index 643e8c7..71206bb 100755 --- a/weblog/urls.py +++ b/weblog/urls.py @@ -9,4 +9,5 @@ urlpatterns = [ url(r'^(?P<year>[0-9]{4})/(?P<month>[0-9]{1,2})/$', views.Index, name='ArchiveIndex'),
url(r'^(?P<category_slug>[-\w]+)/$', views.Index, name='CategoryIndex'),
url(r'^(?P<category_slug>[-\w]+)/(?P<post_slug>[-\w]+)/$', views.PostView, name='PostView'),
-]
\ No newline at end of file + url(r'^(?P<category_slug>[-\w]+)/(?P<post_slug>[-\w]+)/(?P<language>[-\w]+)/$', views.PostView, name='TranslationView'),
+]
|