Answers for "how to server static files in django"

5

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
12

add static file in django

STATICFILES_DIRS = [
    BASE_DIR / "static",
    '/var/www/static/',
]
Posted by: Guest on November-25-2020
0

django static files

STATICFILES_DIRS = [
    BASE_DIR / "static",
]
Posted by: Guest on February-24-2022

Code answers related to "how to server static files in django"

Python Answers by Framework

Browse Popular Code Answers by Language