diff --git a/back_latienda/settings/base.py b/back_latienda/settings/base.py index c726d42..7e04aa1 100644 --- a/back_latienda/settings/base.py +++ b/back_latienda/settings/base.py @@ -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/' diff --git a/back_latienda/settings/development.py b/back_latienda/settings/development.py index 83cb871..56c8279 100644 --- a/back_latienda/settings/development.py +++ b/back_latienda/settings/development.py @@ -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), diff --git a/back_latienda/settings/production.py b/back_latienda/settings/production.py index a475c71..e25c0b1 100644 --- a/back_latienda/settings/production.py +++ b/back_latienda/settings/production.py @@ -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