Commit 26fee966 authored by Julien Enselme's avatar Julien Enselme

Configure static root

This will allow the collectstatic command to run.
parent 1608ea13
......@@ -11,9 +11,10 @@ https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import os
from pathlib import Path
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
BASE_DIR = Path(__file__).parents[1].absolute()
# Quick-start development settings - unsuitable for production
......@@ -123,4 +124,5 @@ STATICFILES_DIRS = [
os.path.join(BASE_DIR, 'djangopwa/static/'),
]
STATIC_ROOT = BASE_DIR / 'static'
STATIC_URL = '/static/'
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment