static.py 556 Bytes
Newer Older
luxcem's avatar
luxcem committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
"""
Static files related settings
See https://docs.djangoproject.com/en/1.10/howto/static-files/ for refs
"""

import os
from .base import BASE_DIR

# Url to get static files
STATIC_URL = "/static/"
# Directory of static files (used by collectstatic)
STATIC_ROOT = os.path.join(BASE_DIR, "static", "static_root")
# Additionaly to apps/static dirs, files in staticfiles_dirs will be copied
# by collectstatic
STATICFILES_DIRS = (
    os.path.join(BASE_DIR, "static", "build"),
)

MEDIA_URL = "/media/"
MEDIA_ROOT = os.path.join(BASE_DIR, "static", "media")