Install requirements from production file (has psycopg2)

This commit is contained in:
Roland Geider
2020-10-29 13:02:36 +01:00
parent 2a201c8dc3
commit 4b189649cd
2 changed files with 9 additions and 2 deletions

View File

@@ -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)

View File

@@ -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 <wger@example.com>'
# Your twitter handle, if you have one for this instance.
#WGER_SETTINGS['TWITTER'] = ''