Created
May 16, 2022 22:19
-
-
Save agusrichard/e69b1502cedc55e55c81c4eefc32360f to your computer and use it in GitHub Desktop.
This file contains hidden or 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
from django.urls import path | |
from .views import ( | |
home, | |
login, | |
logout, | |
register, | |
edit_todo, | |
create_todo, | |
delete_todo, | |
toggle_todo, | |
) | |
app_name = "todo" | |
urlpatterns = [ | |
path("", home, name="home"), | |
path("create/", create_todo, name="create_todo"), | |
path("edit/<int:todo_id>/", edit_todo, name="edit_todo"), | |
path("delete/<int:todo_id>/", delete_todo, name="delete_todo"), | |
path("toggle/<int:todo_id>/", toggle_todo, name="toggle_todo"), | |
path("auth/register/", register, name="register"), | |
path("auth/login/", login, name="login"), | |
path("auth/logout/", logout, name="logout"), | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment