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 620B

12345678910111213
  1. from django.conf.urls import url
  2. from . import views
  3. urlpatterns = [
  4. url(r'^$', views.post_list, name='post_list'),
  5. url(r'^student/', views.student_page, name='student_page'),
  6. url(r'^post/(?P<pk>\d+)/$', views.post_detail, name='post_detail'),
  7. url(r'^post/new/$', views.post_new, name='post_new'),
  8. url(r'^post/(?P<pk>\d+)/edit/$', views.post_edit, name='post_edit'),
  9. url(r'^drafts/$', views.post_draft_list, name='post_draft_list'),
  10. url(r'^post/(?P<pk>\d+)/publish/$', views.post_publish, name='post_publish'),
  11. url(r'^post/(?P<pk>\d+)/remove/$', views.post_remove, name='post_remove'),
  12. ]