Spaces:
Sleeping
Sleeping
Download classroomService/urls.py from mohitlahoti2002/djangoServer: direct link, hf CLI and curl.
- Browser
- Download file 482 Bytes
-
https://huggingface.co/spaces/mohitlahoti2002/djangoServer/resolve/main/classroomService/urls.py
- Command line
-
hf download hf://spaces/mohitlahoti2002/djangoServer/classroomService/urls.py
-
curl -L -o urls.py https://huggingface.co/spaces/mohitlahoti2002/djangoServer/resolve/main/classroomService/urls.py
482 Bytes
| from django.urls import path, include | |
| from rest_framework.routers import DefaultRouter | |
| from .views import ClassroomViewSet, EnrollmentViewSet, TeacherStudentListView | |
| router = DefaultRouter() | |
| router.register(r'classrooms', ClassroomViewSet, basename='classroom') | |
| router.register(r'enrollments', EnrollmentViewSet, basename='enrollment') | |
| urlpatterns = [ | |
| path('', include(router.urls)), | |
| path('teacher/students/', TeacherStudentListView.as_view(), name='teacher-students'), | |
| ] | |