feat: add user-scoped favorites and notes
This commit is contained in:
@ -66,3 +66,7 @@ USE_TZ = True
|
||||
STATIC_URL = "static/"
|
||||
|
||||
DEFAULT_AUTO_FIELD = "django.db.models.BigAutoField"
|
||||
|
||||
LOGIN_URL = "login"
|
||||
LOGIN_REDIRECT_URL = "scouting:player_list"
|
||||
LOGOUT_REDIRECT_URL = "scouting:player_list"
|
||||
|
||||
@ -1,7 +1,10 @@
|
||||
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("accounts/login/", auth_views.LoginView.as_view(template_name="registration/login.html"), name="login"),
|
||||
path("accounts/logout/", auth_views.LogoutView.as_view(), name="logout"),
|
||||
path("", include("scouting.urls")),
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user