Change static file configuration to use statics from pix360core
This commit is contained in:
parent
41f4b0887f
commit
1ee5d9b699
1 changed files with 5 additions and 13 deletions
|
@ -1,21 +1,11 @@
|
|||
"""
|
||||
Django settings for pix360 project.
|
||||
|
||||
Generated by 'django-admin startproject' using Django 4.2.6.
|
||||
|
||||
For more information on this file, see
|
||||
https://docs.djangoproject.com/en/4.2/topics/settings/
|
||||
|
||||
For the full list of settings and their values, see
|
||||
https://docs.djangoproject.com/en/4.2/ref/settings/
|
||||
"""
|
||||
|
||||
from django.urls import reverse_lazy
|
||||
|
||||
from pathlib import Path
|
||||
|
||||
from autosecretkey import AutoSecretKey
|
||||
|
||||
import pix360core
|
||||
|
||||
# Build paths inside the project like this: BASE_DIR / 'subdir'.
|
||||
BASE_DIR = Path(__file__).resolve().parent.parent
|
||||
|
||||
|
@ -183,8 +173,10 @@ STATIC_URL = '/static/'
|
|||
STATIC_ROOT = None if DEBUG else CONFIG.get(
|
||||
"PIX360", "StaticRoot", fallback=None)
|
||||
|
||||
CORE_STATIC_DIR = Path(pix360core.__file__).parent / "static"
|
||||
|
||||
STATICFILES_DIRS = [
|
||||
BASE_DIR / "static",
|
||||
CORE_STATIC_DIR,
|
||||
]
|
||||
|
||||
# Settings for uploaded files
|
||||
|
|
Loading…
Reference in a new issue