2016-10-31 01:14:28 +00:00
|
|
|
# Use in `tox`.
|
2019-05-22 15:08:02 +00:00
|
|
|
from django_nine import versions
|
2016-10-31 01:14:28 +00:00
|
|
|
|
2016-10-20 00:50:41 +00:00
|
|
|
from .base import *
|
2016-10-31 01:14:28 +00:00
|
|
|
|
2016-11-16 23:07:06 +00:00
|
|
|
TESTING = True
|
2016-10-31 01:14:28 +00:00
|
|
|
|
2016-11-16 23:07:06 +00:00
|
|
|
INSTALLED_APPS = list(INSTALLED_APPS)
|
2016-10-31 01:14:28 +00:00
|
|
|
|
2016-11-10 00:44:33 +00:00
|
|
|
LOGGING = {}
|
2016-11-10 01:35:53 +00:00
|
|
|
|
|
|
|
|
DEBUG_TOOLBAR = False
|
2017-12-17 22:12:42 +00:00
|
|
|
|
|
|
|
|
DATABASES = {
|
|
|
|
|
'default': {
|
|
|
|
|
# Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.
|
2018-08-12 00:32:38 +00:00
|
|
|
'ENGINE': 'django.db.backends.postgresql_psycopg2',
|
|
|
|
|
'NAME': 'fobi',
|
|
|
|
|
'USER': 'postgres',
|
|
|
|
|
'PASSWORD': 'test',
|
|
|
|
|
|
|
|
|
|
# 'ENGINE': 'django.db.backends.sqlite3',
|
|
|
|
|
# 'NAME': PROJECT_DIR('../../db/example.db'),
|
|
|
|
|
# 'USER': '',
|
|
|
|
|
# 'PASSWORD': '',
|
|
|
|
|
|
2017-12-17 22:12:42 +00:00
|
|
|
# Empty for localhost through domain sockets or '127.0.0.1' for
|
|
|
|
|
# localhost through TCP.
|
|
|
|
|
'HOST': '',
|
|
|
|
|
# Set to empty string for default.
|
|
|
|
|
'PORT': '',
|
2019-05-21 19:59:45 +00:00
|
|
|
'TEST': {
|
|
|
|
|
'NAME': 'fobi_tests',
|
|
|
|
|
'USER': 'postgres',
|
|
|
|
|
'PASSWORD': '', # For travis
|
|
|
|
|
}
|
2017-12-17 22:12:42 +00:00
|
|
|
}
|
|
|
|
|
}
|
2017-12-27 14:11:05 +00:00
|
|
|
|
2020-01-11 01:11:28 +00:00
|
|
|
DATABASES['default']['ENGINE'] = 'django.db.backends.postgresql'
|
2017-12-27 14:11:05 +00:00
|
|
|
|
|
|
|
|
# FeinCMS addons
|
|
|
|
|
|
|
|
|
|
INSTALLED_APPS += [
|
|
|
|
|
'feincms', # FeinCMS
|
|
|
|
|
|
|
|
|
|
'fobi.contrib.apps.feincms_integration', # Fobi FeinCMS app
|
|
|
|
|
|
|
|
|
|
'page', # Example
|
|
|
|
|
]
|
2017-12-27 19:44:17 +00:00
|
|
|
|
|
|
|
|
MIGRATION_MODULES = {
|
|
|
|
|
'fobi': 'fobi.migrations',
|
|
|
|
|
'db_store': 'fobi.contrib.plugins.form_handlers.db_store.migrations',
|
|
|
|
|
'page': 'page.migrations',
|
|
|
|
|
}
|
2018-08-12 00:42:42 +00:00
|
|
|
|
|
|
|
|
try:
|
2020-01-11 00:26:59 +00:00
|
|
|
from .local_settings import TEST_DATABASES as DATABASES
|
2018-08-12 00:42:42 +00:00
|
|
|
except:
|
|
|
|
|
pass
|