fixes to start production environment

This commit is contained in:
Sam
2021-02-19 12:53:59 +00:00
parent 785507e9dc
commit 20838fd62f
3 changed files with 7 additions and 4 deletions

View File

@@ -149,3 +149,8 @@ USE_TZ = True
STATIC_URL = '/static/'
TAXONOMY_FILE = 'shop-taxonomy.es-ES.txt'
MEDIA_URL = '/media/'
MEDIA_ROOT = BASE_DIR + '/../media/'
GEOIP_PATH = BASE_DIR + '/../datasets/'

View File

@@ -21,10 +21,6 @@ DATABASES = {
},
}
MEDIA_URL = '/media/'
MEDIA_ROOT = BASE_DIR + '/../media/'
GEOIP_PATH = BASE_DIR + '/../datasets/'
# JWT SETTINGS
SIMPLE_JWT = {
'ACCESS_TOKEN_LIFETIME': timedelta(minutes=60),

View File

@@ -1,5 +1,7 @@
from back_latienda.settings.base import *
from datetime import timedelta
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = False