Answers for "django settings static"

1

how to add static files in django

STATIC_URL = '/static/'
STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles')
STATICFILES_DIRS = [
    BASE_DIR / 'static'
]
Posted by: Guest on January-16-2022
0

django url static

urlpatterns += static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
Posted by: Guest on September-15-2020

Code answers related to "django settings static"

Browse Popular Code Answers by Language