Add login and home page

This commit is contained in:
2025-12-10 18:28:07 +05:30
parent df595e4f19
commit 27aac4da8c
13 changed files with 239 additions and 3 deletions

View File

@@ -1,9 +1,12 @@
from django.contrib.auth.views import LoginView
from django.urls import include, path
from notes import api_views
from notes import views, api_views
urlpatterns = [
path("", views.HomePage.as_view(), name="home"),
path("login/", LoginView.as_view(), name='login'),
path("api/notes/", api_views.NoteListView.as_view(), name="api-notes-list"),
path("api-auth/", include("rest_framework.urls", namespace="rest_framework")),
]