Answers for "django get static file programmatically"

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

static files in django

STATICFILES_DIRS = [
    BASE_DIR / "static",
    '/var/www/static/',
]
Posted by: Guest on March-27-2021

Python Answers by Framework

Browse Popular Code Answers by Language