from django.conf.urls import url from apps.teaching import views from apps.srtp.views import permission_forbidden urlpatterns = [ url(r'^informationPublish/$', permission_forbidden(http_exception=401)( views.InformationPublishView.as_view()), name='informationPublish'), #管理员在这里发布征集项目的通告 url(r'^readInfo/$', views.InformationPublishDetailView.as_view(), name='readInfo'), #管理员或教师在这里查看历史发布信息的详情 url(r'^deleteInfo/$', permission_forbidden(http_exception=401)( views.DeleteInfoView.as_view()), name='deleteInfo'), #管理员在这里删除发布的信息 url(r'^ProjectSelect/$', permission_forbidden(http_exception=401)( views.ProjectSelectView.as_view()), name='ProjectSelect'), #管理员在这里进行项目评选 url(r'^informationList/$', permission_forbidden(http_exception=402)( views.TeacherInformationListView.as_view()), name='informationList'), #教师在这里查看管理员发布的具体通知 url(r'^applyProject/$', permission_forbidden(http_exception=402)( views.ProjectApplyView.as_view()), name='applyProject'), #教师在这里申请项目 url(r'^myProjectList/$', permission_forbidden(http_exception=402)( views.MyProjectListView.as_view()),
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')) """ from django.conf.urls import url, include from apps.graduation import views from apps.srtp.views import permission_forbidden urlpatterns = [ url(r'^student/$', permission_forbidden(http_exception=403)( views.GraduationStudentView.as_view()), name='graduation_student'), #学生界面的路由映射 url(r'^admin/GradtuationScheduleWatch/$', permission_forbidden(http_exception=401)( views.GraduationAdminView.as_view()), name='graduation_admin'), #管理员界面的路由映射 url(r'^teacher/$', permission_forbidden(http_exception=402)( views.GraduationTeacherView.as_view()), name='graduation_teacher'), #教师界面的路由映射 url(r'^teacher/verifyProjectOtherTeacher', permission_forbidden(http_exception=402)( views.GraduationTeacherOtherView.as_view()), name='graduation_teacher_other'), #评审教师界面的路由映射 url(r'^teacher/verifyProjectTutor', permission_forbidden(http_exception=402)(
from django.urls import path urlpatterns = [ url(r'^admin/', admin.site.urls), url(r'^srtp/', include('apps.srtp.urls')), url(r'^teaching/', include('apps.teaching.urls')), url(r'^course/', include('apps.coursArrange.urls')), # 有关课程的路由映射 url(r'^graduation/', include('apps.graduation.urls')), # 有关毕业设计管理的路由映射 url(r'^$', views.IndexView.as_view(), name='index'), url(r'^login/$', views.UserLoginView.as_view(), name='login'), url(r'^logout/$', views.UserLogoutView.as_view(), name='logout'), url(r'^course_arrange/$', views.courseArrangeView.as_view(), name='courseArrange'), url(r'^addTeacher/$', permission_forbidden(http_exception=401)( views.AddUser_TeacherView.as_view()), name='teacherInfo'), url(r'^addStudent/$', permission_forbidden(http_exception=401)( views.AddUser_StudentView.as_view()), name='studentInfo'), url(r'^addCourse/$', permission_forbidden(http_exception=401)( views.CourseListAdmView.as_view()), name='addCrouse'), url(r'^delete/deleteTea', permission_forbidden(http_exception=401)( views.DeleteUser_TeacherView.as_view()), name='deleteTeacher'), url(r'^delete/deleteStu', permission_forbidden(http_exception=401)(
from django.conf.urls import url from apps.srtp import views from apps.srtp.views import permission_forbidden # from .views import file_download urlpatterns = [ url(r'^releaseProjectCollect/$', permission_forbidden(http_exception=401)( views.ProjectCollectIssueView.as_view()), name='releaseProjectCollect'), #管理员进入到发布srtp项目征集通告页面 url(r'^submitCollectSrtp/$', permission_forbidden(http_exception=402)( views.SrtpCollectInfoView.as_view()), name='SrtpCollectInfo'), #教师查看项目征集的通告,并申报项目 url(r'^checkCollectedItem/$', permission_forbidden(http_exception=401)( views.CollectProjectDetailView.as_view()), name='CollectProjectDetail'), #管理员查看教师申报项目的具体详情 url(r'^deleteCollectedProject/$', permission_forbidden(http_exception=401)( views.DeleteTeaProjectView.as_view()), name='deleteCollectedProject'), #管理员删除教师申报的项目 url(r'^submitPublishProject/$', permission_forbidden(http_exception=401)( views.SrtpProjectPubilshView.as_view()), name='PublishProject'), #管理员进行srtp项目公布,并在这里给学生发布具体的申报信息。
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')) """ from django.conf.urls import url,include from apps.coursArrange import views from apps.srtp.views import permission_forbidden urlpatterns = [ url(r'^$', views.courseList_TeacherView.as_view(), name='course'), #查看该名教师的课程信息 url(r'^courseChange/$', permission_forbidden(http_exception=401)(views.CourseAdminView.as_view()), name='courseAdminView'), #管理员排课界面 url(r'^courseChange/courseInfoDelete', permission_forbidden(http_exception=401)(views.delectCourseInfoView.as_view()), name='courseInfoDelete'), #管理员删除课程信息 url(r'^courseChange/courseArrangeDelete', permission_forbidden(http_exception=401)(views.deleteCourseArrangeView.as_view()), name='courseDelete_Teacher'), #管理员删除教师的课程信息 url(r'^courseDemand', permission_forbidden(http_exception=402)(views.addCourseDemandView.as_view()), name='coureDemand_Teacher'), # 为指定课程添加排课需求 url(r'courseHandArrange', permission_forbidden(http_exception=401)(views.CourseHandArrangeView.as_view()), name='HanCourseArrange'), #管理员手工排课 url(r'courseListTeacher/', permission_forbidden(http_exception=401)(views.CourseArrangeListTeacherView.as_view()), name='CourseListTeacher'), #管理员查看所有教师的课程信息 url(r'^releaseAllCourseArrange/', permission_forbidden(http_exception=401)(views.ReleaseAllCourseArrangeView.as_view()), name='ReleaseAllCourseArrange'), #管理员发布排课最终结果 ]