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