added accounts app into project settings and urls

dev
Calum Andrew Morrell 2025-11-05 14:33:11 +00:00
parent 33130d3607
commit d95637c8bf
2 changed files with 12 additions and 2 deletions

View File

@ -36,6 +36,7 @@ ALLOWED_HOSTS = eval(os.getenv("ALLOWED_HOSTS"))
# Application definition
INSTALLED_APPS = [
"accounts.apps.AccountsConfig",
"django.contrib.admin",
"django.contrib.auth",
"django.contrib.contenttypes",
@ -126,6 +127,13 @@ USE_TZ = True
STATIC_URL = "static/"
STATIC_ROOT = BASE_DIR / "static"
# User model and authentication
AUTH_USER_MODEL = "accounts.User"
# LOGIN_REDIRECT_URL = ''
# LOGOUT_REDIRECT_URL = ''
# Default primary key field type
# https://docs.djangoproject.com/en/5.2/ref/settings/#default-auto-field

View File

@ -14,9 +14,11 @@ Including another URLconf
1. Import the include() function: from django.urls import include, path
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
"""
from django.contrib import admin
from django.urls import path
from django.urls import include, path
urlpatterns = [
path('admin/', admin.site.urls),
path("admin/", admin.site.urls),
path("accounts/", include("accounts.urls")),
]