Development of an internal social media platform with personalised dashboards for students
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

urls.py 1.1KB

12345678910111213141516171819202122
  1. from django.conf.urls import url
  2. from django.conf.urls import include
  3. from taggit_templatetags2 import urls as taggit_templatetags2_urls
  4. from . import views
  5. urlpatterns = [
  6. url(r'^$', views.post_list, name='post_list'),
  7. url(r'^tag/(?P<slug>[-\w]+)/$', views.post_list, name='post_list_by_tag'),
  8. url(r'^taglist/$', views.tag_list, name='tag_list'),
  9. url(r'^taglist/(?P<slug>[-\w]+)/$', views.post_list, name='post_list_by_tag'),
  10. url(r'^student/', views.student_page, name='student_page'),
  11. url(r'^search/', views.blog_search_list_view, name='blog_search_list_view'),
  12. url(r'^post/(?P<pk>\d+)/$', views.post_detail, name='post_detail'),
  13. url(r'^post/new/$', views.post_new, name='post_new'),
  14. url(r'^post/(?P<pk>\d+)/edit/$', views.post_edit, name='post_edit'),
  15. url(r'^drafts/$', views.post_draft_list, name='post_draft_list'),
  16. url(r'^post/(?P<pk>\d+)/publish/$', views.post_publish, name='post_publish'),
  17. url(r'^post/(?P<pk>\d+)/remove/$', views.post_remove, name='post_remove'),
  18. url(r'^student/remove/$', views.tag_remove, name='tag_remove'),
  19. url(r'^tags/', include('taggit_templatetags2.urls')),
  20. ]