[static assets] finally bloddy django finds and serves pico.min.css

also includes a favicon because the browser kept asking for one
This commit is contained in:
bronsen 2025-03-18 22:55:09 +01:00
parent 7028a03f5c
commit 2b7e478a40
5 changed files with 17 additions and 4 deletions

View file

@ -105,6 +105,9 @@ USE_TZ = True
# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/5.1/howto/static-files/
STATIC_URL = "static/"
STATIC_ROOT = BASE_DIR / "static"
STATICFILES_DIRS = [BASE_DIR / "assets"]
# Default primary key field type
# https://docs.djangoproject.com/en/5.1/ref/settings/#default-auto-field

View file

@ -16,13 +16,14 @@ Including another URLconf
"""
from django.conf import settings
from django.conf.urls.static import static
from django.contrib import admin
from django.urls import include, path
urlpatterns = [
path("", include("collector.urls")),
path("admin/", admin.site.urls),
]
] + static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
if settings.DEBUG:
from debug_toolbar.toolbar import debug_toolbar_urls