generated from SverreNystad/template_python_application
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commit refactors the user views and URLs in the backend. The `LoginView` function has been renamed to `login`, and the `RegisterUser` function has been renamed to `register_user`. The corresponding changes have also been made in the `urls.py` file. This improves code readability and follows naming conventions.
- Loading branch information
1 parent
11ce031
commit aa3794a
Showing
2 changed files
with
5 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 users.views import LoginView, RegisterUser | ||
from users.views import login, register_user | ||
from documents.views import upload_pdf | ||
|
||
urlpatterns = [ | ||
path("create-user/", RegisterUser, name="create-user"), | ||
path("login/", LoginView, name="login"), | ||
path("create-user/", register_user, name="create-user"), | ||
path("login/", login, name="login"), | ||
path("upload/", upload_pdf, name="upload"), | ||
] |
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