feat(settings): [A] add stats file settings

[A] add stats file settings

Signed-off-by: Ching <loooching@gmail.com>
This commit is contained in:
Ching 2021-10-04 23:50:14 +08:00
parent a08a7fc8df
commit aeb2e44fcb

View File

@ -40,5 +40,13 @@ CORS_ALLOW_HEADERS = [
CORS_ALLOW_HEADERS = ('*') CORS_ALLOW_HEADERS = ('*')
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
PROJECT_DIR = os.path.dirname(os.path.abspath(__file__)) PROJECT_DIR = os.path.dirname(os.path.abspath(__file__))
STATIC_ROOT = os.path.join(PROJECT_DIR, 'static') STATIC_ROOT = os.path.join(BASE_DIR, 'static')
STATICFILES_DIRS = [
os.path.join(BASE_DIR, "frontend/dist/"),
]
MEDIA_URL = '/media/'
MEDIA_ROOT = os.path.join(BASE_DIR, 'media')