Commit 6cf697f8 authored by guglielmo's avatar guglielmo

constance (live settings) added to requirements and configured as tenants app, with database

parent 6337ba2c
......@@ -37,4 +37,6 @@ node_modules/
# osx .DS_Store
.DS_Store
venv
\ No newline at end of file
venv
dump.rdb
......@@ -186,6 +186,7 @@ SHARED_APPS = (
"django_extensions",
# Customers or tenants
"project.tenants",
# Live settings
)
# Apps specific for this project go here.
......@@ -204,6 +205,8 @@ TENANT_APPS = (
"django_admin_row_actions",
# The app
"project.webapp",
"constance",
"constance.backends.database",
)
# See: https://docs.djangoproject.com/en/dev/ref/settings/#installed-apps
......@@ -292,6 +295,7 @@ WSGI_APPLICATION = "wsgi.application"
# -----------------------------------------------------------------------------
# See: https://docs.djangoproject.com/en/dev/releases/1.6/#new-test-runner
TEST_RUNNER = "django.test.runner.DiscoverRunner"
# END TESTING CONFIGURATION
# TENANT CONFIGURATION
# -------------------
......@@ -299,6 +303,16 @@ TENANT_MODEL = "tenants.Instance"
TENANT_DOMAIN_MODEL = "tenants.Domain"
# END TENANT CONFIGURATION
# CONSTANCE (LIVE SETTINGS) CONFIGURATION
# -------------------
CONSTANCE_CONFIG = {
'THE_ANSWER': (42, 'Answer to the Ultimate Question of Life, '
'The Universe, and Everything'),
}
CONSTANCE_IGNORE_ADMIN_VERSION_CHECK = True
CONSTANCE_BACKEND = 'constance.backends.database.DatabaseBackend'
# END CONSTANCE (LIVE SETTINGS) CONFIGURATION
VERSION = __import__(PROJECT_PACKAGE).__version__
# Usually set by the Gitlab runner, to set it manually:
......
......@@ -11,6 +11,11 @@ django-braces
django-object-actions
django-admin-row-actions
# multi-tenancy
django-tenants==2.2.3
django-constance==2.4.0
django-constance[database]
# App requirements
psycopg2-binary==2.7.5
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment