Self hosted FLOSS fitness/workout, nutrition and weight tracker
Commit missing settings file
Roland Geiderd07d089334b3
diff --git a/extras/docker/development/settings.py b/extras/docker/development/settings.pynew file mode 100644index 000000000..2ed3e7506--- /dev/null+++ b/extras/docker/development/settings.py@@ -0,0 +1,79 @@+#!/usr/bin/env python+# -*- coding: utf-8 -*-++# wger+from wger.settings_global import *+++# Use 'DEBUG = True' to get more details for server errors+DEBUG = True+TEMPLATES[0]['OPTIONS']['debug'] = True++ADMINS = (+ ('Your name', '[email protected]'),+)+MANAGERS = ADMINS++if os.environ.get("DJANGO_DB_ENGINE"):+ DATABASES = {+ 'default': {+ 'ENGINE': os.environ.get("DJANGO_DB_ENGINE"),+ 'NAME': os.environ.get("DJANGO_DB_NAME"),+ 'USER': os.environ.get("DJANGO_DB_USER"),+ 'PASSWORD': os.environ.get("DJANGO_DB_PASSWORD"),+ 'HOST': os.environ.get("DJANGO_DB_HOST"),+ 'PORT': os.environ.get("DJANGO_DB_PART"),+ }+ }+else:+ DATABASES = {+ 'default': {+ 'ENGINE': 'django.db.backends.sqlite3',+ 'NAME': '/home/wger/db/database.sqlite',+ }+ }++# Timezone for this installation. Consult settings_global.py for more information+TIME_ZONE = 'Europe/Berlin'++# Make this unique, and don't share it with anybody.+SECRET_KEY = '3^st!i-*a*iy!-4-^!rc8nv)-q34dg3u6f=bl%!h+!$xbznqj5'++# Your reCaptcha keys+RECAPTCHA_PUBLIC_KEY = ''+RECAPTCHA_PRIVATE_KEY = ''+NOCAPTCHA = True++# The site's URL (e.g. http://www.my-local-gym.com or http://localhost:8000)+# This is needed for uploaded files and images (exercise images, etc.) to be+# properly served.+SITE_URL = 'http://localhost:8000'++# Path to uploaded files+# Absolute filesystem path to the directory that will hold user-uploaded files.+MEDIA_ROOT = '/home/wger/media'+MEDIA_URL = '/media/'++# Allow all hosts to access the application. Change if used in production.+ALLOWED_HOSTS = '*'++# This might be a good idea if you setup memcached+#SESSION_ENGINE = "django.contrib.sessions.backends.cache"++# Configure a real backend in production+if DEBUG:+ EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'++# Sender address used for sent emails+WGER_SETTINGS['EMAIL_FROM'] = 'wger Workout Manager <[email protected]>'++if os.environ.get("DJANGO_CACHE_BACKEND"):+ CACHES = {+ 'default': {+ 'BACKEND': os.environ.get("DJANGO_CACHE_BACKEND"),+ 'LOCATION': os.environ.get("DJANGO_CACHE_HOST") + ":" + os.environ.get("DJANGO_CACHE_PORT"),+ 'TIMEOUT': os.environ.get("DJANGO_CACHE_TIMEOUT")+ }+ }++BOWER_PATH = '/usr/local/bin/bower'