mirror of
https://github.com/rjNemo/villafleurie
synced 2026-06-06 02:16:47 +00:00
static folder settings
This commit is contained in:
parent
3871b65340
commit
378bad800d
1 changed files with 4 additions and 0 deletions
|
|
@ -113,8 +113,12 @@ if os.environ.get('ENV') == 'PRODUCTION':
|
|||
PROJECT_ROOT = os.path.dirname(os.path.abspath(__file__))
|
||||
|
||||
STATIC_ROOT = os.path.join(PROJECT_ROOT, 'staticfiles')
|
||||
STATIC_TMP = os.path.join(PROJECT_ROOT, 'static')
|
||||
|
||||
# Extra places for collectstatic to find static files.
|
||||
STATICFILES_DIRS = (
|
||||
os.path.join(PROJECT_ROOT, 'static'),
|
||||
)
|
||||
|
||||
os.makedirs(STATIC_TMP, exist_ok=True)
|
||||
os.makedirs(STATIC_ROOT, exist_ok=True)
|
||||
|
|
|
|||
Loading…
Reference in a new issue