diff --git a/back_latienda/settings/production.py b/back_latienda/settings/production.py index d319744..5dbf4c2 100644 --- a/back_latienda/settings/production.py +++ b/back_latienda/settings/production.py @@ -5,7 +5,7 @@ from datetime import timedelta # SECURITY WARNING: don't run with debug turned on in production! DEBUG = False -ALLOWED_HOSTS = ['127.0.0.1:8000', 'localhost'] +ALLOWED_HOSTS = ['*'] # Database # https://docs.djangoproject.com/en/2.2/ref/settings/#databases @@ -22,6 +22,10 @@ DATABASES = { }, } +STATIC_ROOT = '/webapps/latienda/static/' +MEDIA_ROOT = '/webapps/latienda/media/' + + # Django private storage - Amazon S3 AWS_ACCESS_KEY_ID = os.getenv('AWS_ACCESS_KEY_ID_S3') AWS_SECRET_ACCESS_KEY = os.getenv('AWS_SECRET_ACCESS_KEY_S3')