From 85f1db1bc3c43349940f8eccdaa15549c82a3fb1 Mon Sep 17 00:00:00 2001 From: Disco DeDisco Date: Sat, 3 Jan 2026 22:04:39 -0500 Subject: [PATCH] set STATIC_ROOT in core.settings; disabled admin in same & .urls --- core/settings.py | 3 ++- core/urls.py | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/core/settings.py b/core/settings.py index 08d2ec1..0d23e0e 100644 --- a/core/settings.py +++ b/core/settings.py @@ -32,7 +32,7 @@ ALLOWED_HOSTS = [] INSTALLED_APPS = [ # Django apps - 'django.contrib.admin', + # 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', @@ -120,3 +120,4 @@ USE_TZ = True # https://docs.djangoproject.com/en/6.0/howto/static-files/ STATIC_URL = 'static/' +STATIC_ROOT = BASE_DIR / 'static' diff --git a/core/urls.py b/core/urls.py index 8ef1731..dc58d46 100644 --- a/core/urls.py +++ b/core/urls.py @@ -1,9 +1,9 @@ -from django.contrib import admin +# from django.contrib import admin from django.urls import include, path from apps.dashboard import views as list_views urlpatterns = [ - path('admin/', admin.site.urls), + # path('admin/', admin.site.urls), path('', list_views.home_page, name='home'), path('apps/dashboard/', include('apps.dashboard.urls')), ]