-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refact(#12): implement function based view
- Loading branch information
1 parent
43e6460
commit b5ef6a4
Showing
2 changed files
with
10 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
from django.urls import path | ||
from django.conf.urls import url | ||
from .views import list_students, create_student, update_student, delete_student | ||
from students import views | ||
|
||
urlpatterns = [ | ||
path('', list_students, name='list_students'), | ||
path('new/', create_student, name='create_students'), | ||
path('update/<int:id>/', update_student, name='update_student'), | ||
path('delete/<int:id>/', delete_student, name='delete_student') | ||
path('', views.list_students, name='list_students'), | ||
path('new/', views.create_student, name='create_students'), | ||
path('update/<int:id>/', views.update_student, name='update_student'), | ||
path('delete/<int:id>/', views.delete_student, name='delete_student') | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters