From bb97581d650e2d994e7b2e63297dbb2d8784f5f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yaroslav=20de=20la=20Pe=C3=B1a=20Smirnov?= Date: Sun, 7 Oct 2018 23:20:39 +0300 Subject: urls for ajax next page loading --- weblog/urls.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'weblog/urls.py') 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[0-9]+)/$', views.Index, name='GetPosts'), + url(r'^ajaxnxtpage/(?P[0-9]{4})/page-(?P[0-9]+)/$', views.Index, name='GetArchivePosts'), + url(r'^ajaxnxtpage/(?P[0-9]{4})/(?P[0-9]{1,2})/page-(?P[0-9]+)/$', views.Index, name='GetArchivePosts'), + url(r'^ajaxnxtpage/(?P[-\w]+)/page-(?P[0-9]+)/$', views.Index, name='GetCategoryPosts'), 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'), -- cgit v1.2.3