Linked accounts app into project.

main
Calum Andrew Morrell 2025-11-09 12:15:17 +00:00
parent b29778834b
commit 3b7932e51a
2 changed files with 10 additions and 2 deletions

View File

@ -36,6 +36,7 @@ ALLOWED_HOSTS = eval(os.getenv("ALLOWED_HOSTS"))
# Application definition
INSTALLED_APPS = [
"accounts",
"django.contrib.admin",
"django.contrib.auth",
"django.contrib.contenttypes",
@ -126,6 +127,11 @@ USE_TZ = True
STATIC_URL = "static/"
STATIC_ROOT = BASE_DIR / "static"
# User model and authentication
AUTH_USER_MODEL = "accounts.User"
# 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")),
]