diff --git a/config/settings.py b/config/settings.py index 4fa2657..16163e6 100644 --- a/config/settings.py +++ b/config/settings.py @@ -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 diff --git a/config/urls.py b/config/urls.py index 35a0802..9245fc1 100644 --- a/config/urls.py +++ b/config/urls.py @@ -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")), ]