From 0fd19edcc2cd0c1d046ae8d9b6d96aa9eab50da9 Mon Sep 17 00:00:00 2001 From: vabene1111 Date: Wed, 13 Nov 2019 21:15:26 +0100 Subject: [PATCH] more cleanup and fixes --- recipes/settings.py | 6 +----- update.sh | 2 +- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/recipes/settings.py b/recipes/settings.py index 9741d46ef..38432f3dc 100644 --- a/recipes/settings.py +++ b/recipes/settings.py @@ -13,10 +13,6 @@ import os from django.contrib import messages from dotenv import load_dotenv -# Quick-start development settings - unsuitable for production -# See https://docs.djangoproject.com/en/2.0/howto/deployment/checklist/ - -# Build paths inside the project like this: os.path.join(BASE_DIR, ...) BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) # Get vars from .env files @@ -24,7 +20,7 @@ SECRET_KEY = os.getenv('SECRET_KEY') if os.getenv('SECRET_KEY') else '728f4t5438 DEBUG = bool(int(os.getenv('DEBUG', True))) -ALLOWED_HOSTS = os.getenv('ALLOWED_HOSTS').split(',') if os.getenv('ALLOWED_HOSTS') else [] +ALLOWED_HOSTS = os.getenv('ALLOWED_HOSTS').split(',') if os.getenv('ALLOWED_HOSTS') else ['*'] LOGIN_REDIRECT_URL = "index" LOGOUT_REDIRECT_URL = "index" diff --git a/update.sh b/update.sh index 6aaca01df..a01271490 100644 --- a/update.sh +++ b/update.sh @@ -1,3 +1,3 @@ #!/usr/bin/env bash docker-compose run web_recipes python3 manage.py migrate -docker-compose run web_recipes python3 manage.py collectstatic +docker-compose run web_recipes python3 manage.py collectstatic --noinput