From c3ebb6ebd321b4115795649e0fedef2406d45064 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=AD=C3=B0ir=20Valberg=20Gu=C3=B0mundsson?= Date: Sun, 5 Nov 2017 17:41:37 +0100 Subject: [PATCH] Make sure that the enviroment_setting.py file is there. --- Makefile | 5 ++++- src/bornhack/dev_environment_settings.py | 22 ++++++++++++++++++++++ 2 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 src/bornhack/dev_environment_settings.py diff --git a/Makefile b/Makefile index e8f3eef1..9ed91da6 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,7 @@ -all: build db_up sleep migrate bootstrap web_up +all: copy_environment_settings build db_up sleep migrate bootstrap web_up + +copy_environment_settings: + cp src/bornhack/dev_environment_settings.py src/bornhack/environment_settings.py build: docker-compose build diff --git a/src/bornhack/dev_environment_settings.py b/src/bornhack/dev_environment_settings.py new file mode 100644 index 00000000..4eb4d533 --- /dev/null +++ b/src/bornhack/dev_environment_settings.py @@ -0,0 +1,22 @@ +# This file is intended for easing the creation of a local development setup +SECRET_KEY = "something-very-random" +ALLOWED_HOSTS = "*" +DATABASES = { + 'default': { + 'ENGINE': 'django.db.backends.postgresql_psycopg2', + 'NAME': 'bornhack', + 'USER': 'bornhack', + 'PASSWORD': 'bornhack', + 'HOST': 'db', + }, +} +DEBUG=True +WKHTMLTOPDF_CMD="wkhtmltopdf" +CHANNEL_LAYERS = { + "default": { + "BACKEND": "asgiref.inmemory.ChannelLayer", + "ROUTING": "bornhack.routing.channel_routing", + "CONFIG": {} + }, +} +CAMP_REDIRECT_PERCENT=40