Commit 1a37ad10 authored by Mathieu Courcelles's avatar Mathieu Courcelles

Fixes STATIC_ROOT

parent 09f47b8e
Pipeline #8638777 passed with stage
in 2 minutes and 7 seconds
......@@ -13,6 +13,8 @@ from unipath import Path
PROJECT_DIR = Path(__file__).ancestor(3)
BASE_DIR = os.path.dirname(
os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
# Code from book Two scoops of Django
# Normally you should not import ANYTHING from Django directly
......@@ -71,7 +73,7 @@ MEDIA_URL = '/media/'
# Don't put anything in this directory yourself; store your static files
# in apps' "static/" subdirectories and in STATICFILES_DIRS.
# Example: "/var/www/example.com/static/"
#STATIC_ROOT = PROJECT_DIR.child('static')
STATIC_ROOT = os.path.join(BASE_DIR, 'static_root')
# URL prefix for static files.
# Example: "http://example.com/static/", "http://static.example.com/"
......
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