16 lines
578 B
Python
16 lines
578 B
Python
from django.contrib import admin
|
|
from django.contrib.auth import views as auth_views
|
|
from django.urls import include, path
|
|
|
|
urlpatterns = [
|
|
path("admin/", admin.site.urls),
|
|
path("api/v1/", include("inventory.api_urls")),
|
|
path("accounts/login/", auth_views.LoginView.as_view(), name="login"),
|
|
path("accounts/logout/", auth_views.LogoutView.as_view(), name="logout"),
|
|
path("", include("inventory.urls")),
|
|
]
|
|
|
|
handler403 = "inventory.error_views.permission_denied"
|
|
handler404 = "inventory.error_views.not_found"
|
|
handler500 = "inventory.error_views.server_error"
|