Add login and home page
This commit is contained in:
@@ -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")),
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user