Add settings for staticfiles
This commit is contained in:
parent
d03d5faa98
commit
c141f05c42
1 changed files with 8 additions and 0 deletions
|
@ -92,8 +92,16 @@ MIDDLEWARE = [
|
|||
|
||||
ROOT_URLCONF = "servala.urls"
|
||||
STATIC_URL = "static/" # CSS, JavaScript, etc.
|
||||
# Collected static files as provided by ``collectstatic`` management command are stored here ready to be served by a web server.
|
||||
STATIC_ROOT = BASE_DIR / "static.dist"
|
||||
MEDIA_URL = "media/" # User uploads, e.g. images
|
||||
|
||||
# Additional locations of static files
|
||||
STATICFILES_FINDERS = (
|
||||
"django.contrib.staticfiles.finders.FileSystemFinder",
|
||||
"django.contrib.staticfiles.finders.AppDirectoriesFinder",
|
||||
)
|
||||
|
||||
TEMPLATES = [
|
||||
{
|
||||
"BACKEND": "django.template.backends.django.DjangoTemplates",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue