aboutsummaryrefslogtreecommitdiff
path: root/weblog/urls.py
diff options
context:
space:
mode:
authorYaroslav de la Peña Smirnov <contact@yaroslavps.com>2018-10-07 23:20:39 +0300
committerYaroslav de la Peña Smirnov <contact@yaroslavps.com>2018-10-07 23:20:39 +0300
commitbb97581d650e2d994e7b2e63297dbb2d8784f5f3 (patch)
tree716a7612ce3467e268eba57c1cb3078383f49aec /weblog/urls.py
parent0eb94a690c477cc8e5b73e29805db17514128bde (diff)
downloadw3blog-bb97581d650e2d994e7b2e63297dbb2d8784f5f3.tar.gz
w3blog-bb97581d650e2d994e7b2e63297dbb2d8784f5f3.zip
urls for ajax next page loading
Diffstat (limited to 'weblog/urls.py')
-rwxr-xr-xweblog/urls.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/weblog/urls.py b/weblog/urls.py
index ddc2c9f..7ddd7f1 100755
--- a/weblog/urls.py
+++ b/weblog/urls.py
@@ -15,6 +15,10 @@ if blog_settings['enable_rss']:
urlpatterns += [
url(r'^$', views.Index, name='Index'),
+ url(r'^ajaxnxtpage/page-(?P<nxtpage>[0-9]+)/$', views.Index, name='GetPosts'),
+ url(r'^ajaxnxtpage/(?P<year>[0-9]{4})/page-(?P<nxtpage>[0-9]+)/$', views.Index, name='GetArchivePosts'),
+ url(r'^ajaxnxtpage/(?P<year>[0-9]{4})/(?P<month>[0-9]{1,2})/page-(?P<nxtpage>[0-9]+)/$', views.Index, name='GetArchivePosts'),
+ url(r'^ajaxnxtpage/(?P<category_slug>[-\w]+)/page-(?P<nxtpage>[0-9]+)/$', views.Index, name='GetCategoryPosts'),
url(r'^change-language/(?P<language>[-\w]+)/$', views.ChangeLanguage, name='ChangeLanguage'),
url(r'^(?P<year>[0-9]{4})/$', views.Index, name='ArchiveIndex'),
url(r'^(?P<year>[0-9]{4})/(?P<month>[0-9]{1,2})/$', views.Index, name='ArchiveIndex'),