COURSEBOOK
Variables
coursebook.urls Namespace Reference

Variables

list urlpatterns
 

Detailed Description

coursebook URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  path('', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))

Variable Documentation

◆ urlpatterns

list coursebook.urls.urlpatterns
Initial value:
1 = [
2  path('admin/doc/', include('django.contrib.admindocs.urls')),
3  path('admin/', admin.site.urls),
4 
5  path('', views.default),
6  path('subjects/', views.show_subjects),
7  path('available_subjects/', views.show_all_subjects),
8  path('pending_subjects/', views.show_pending_subjects),
9  path('reject_subject/<str:sub_code>', views.reject_subject),
10  path('request_subject/<str:sub_code>', views.request_subject),
11  path('withdraw_subject/<str:sub_code>', views.withdraw_subject),
12 
13  path('topics/<str:id>', views.show_topics),
14  path('threads/<int:id>', views.show_threads),
15  path('threads/like/<int:thread_id>/<int:topic_id>', views.update_thread_like_count),
16  path('threads/dislike/<int:thread_id>/<int:topic_id>', views.update_thread_dislike_count),
17  # path('search/<int:topic_id>', views.search),
18 
19  path('login', views.login),
20  path('signup', views.signup),
21  path('logout', views.logout),
22 
23  path('prof/', views.prof_home),
24  path('prof/subjects/', views.prof_subjects),
25  path('prof/student_list/<str:sub_code>', views.student_list),
26  path('prof/student/accept/<str:sub_code>/<int:pid>', views.accept_student),
27  path('prof/student/reject/<str:sub_code>/<int:pid>', views.reject_student),
28 
29  # path('add_thread/<int:id>', views.add_message),
30 ]