0 points

static files in django


PHOTO EMBED

Mon Dec 21 2020 19:04:02 GMT+0000 (UTC)

Saved by @lewiseman #python

//settings.py

STATICFILES_DIRS = [
    BASE_DIR, "static",
]

//urls.py

from django.conf import settings
from django.conf.urls.static import static

 + static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
content_copyCOPY

can work when only on the main urls.py