From ef2607af8d6145bac0d27bb0423fb0a56dc28ef8 Mon Sep 17 00:00:00 2001 From: pablogg Date: Sun, 21 Feb 2021 12:43:39 +0100 Subject: [PATCH] chg allow to all host and static and media root --- back_latienda/settings/production.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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')