From 4b189649cd056dbf0f420fd75434c2abc2a40d95 Mon Sep 17 00:00:00 2001 From: Roland Geider Date: Thu, 29 Oct 2020 13:02:36 +0100 Subject: [PATCH] Install requirements from production file (has psycopg2) --- .github/workflows/ci.yml | 2 +- wger/settings.tpl | 9 ++++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 647bb7d2d..14c56d841 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,7 +33,7 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install -r requirements_dev.txt + pip install -r requirements_prod.txt python setup.py develop - name: Test the application (Postgres) diff --git a/wger/settings.tpl b/wger/settings.tpl index 41c22363f..3475daffd 100644 --- a/wger/settings.tpl +++ b/wger/settings.tpl @@ -8,11 +8,16 @@ from wger.settings_global import * # Use 'DEBUG = True' to get more details for server errors DEBUG = True +# List of administrations ADMINS = ( ('Your name', 'your_email@example.com'), ) MANAGERS = ADMINS +# SERVER_EMAIL = 'info@my-domain.com' +# The email address that error messages (and only error messages, such as +# internal server errors) come from, such as those sent to ADMINS and MANAGERS. + DATABASES = {{ 'default': {{ @@ -49,10 +54,11 @@ 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 +# This might be a good idea if you setup redis #SESSION_ENGINE = "django.contrib.sessions.backends.cache" # Configure a real backend in production +# See: https://docs.djangoproject.com/en/dev/topics/email/#email-backends if DEBUG: EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend' @@ -61,3 +67,4 @@ WGER_SETTINGS['EMAIL_FROM'] = 'wger Workout Manager ' # Your twitter handle, if you have one for this instance. #WGER_SETTINGS['TWITTER'] = '' +