chg allow to all host and static and media root

This commit is contained in:
pablogg
2021-02-21 12:43:39 +01:00
parent d53a6337b5
commit ef2607af8d

View File

@@ -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')