In production, move the static and media directories out of the app directory (which puts them in the lemoncurry user's home dir)
This commit is contained in:
parent
7027c74035
commit
54bed15585
1 changed files with 4 additions and 1 deletions
|
@ -1,7 +1,8 @@
|
||||||
from os import environ
|
from os import environ
|
||||||
|
from os.path import join
|
||||||
|
|
||||||
from .base import *
|
from .base import *
|
||||||
from .base import DATABASES
|
from .base import BASE_DIR, DATABASES
|
||||||
|
|
||||||
ALLOWED_HOSTS = ['00dani.me']
|
ALLOWED_HOSTS = ['00dani.me']
|
||||||
DEBUG = False
|
DEBUG = False
|
||||||
|
@ -14,6 +15,8 @@ DATABASES['default'] = {
|
||||||
'USER': 'lemoncurry',
|
'USER': 'lemoncurry',
|
||||||
}
|
}
|
||||||
|
|
||||||
|
STATIC_ROOT = join(BASE_DIR, '..', 'static')
|
||||||
|
MEDIA_ROOT = join(BASE_DIR, '..', 'media')
|
||||||
STATIC_URL = 'https://cdn.00dani.me/'
|
STATIC_URL = 'https://cdn.00dani.me/'
|
||||||
MEDIA_URL = STATIC_URL + 'media/'
|
MEDIA_URL = STATIC_URL + 'media/'
|
||||||
META_SITE_DOMAIN = '00dani.me'
|
META_SITE_DOMAIN = '00dani.me'
|
||||||
|
|
Loading…
Reference in a new issue