mirror of
https://github.com/Hopiu/django-fobi.git
synced 2026-03-16 22:10:28 +00:00
58 lines
1.2 KiB
Python
58 lines
1.2 KiB
Python
# Use in `tox`.
|
|
from django_nine import versions
|
|
|
|
from .base import *
|
|
|
|
TESTING = True
|
|
|
|
INSTALLED_APPS = list(INSTALLED_APPS)
|
|
|
|
LOGGING = {}
|
|
|
|
DEBUG_TOOLBAR = False
|
|
|
|
DATABASES = {
|
|
'default': {
|
|
# Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.
|
|
'ENGINE': 'django.db.backends.postgresql',
|
|
'NAME': 'fobi',
|
|
'USER': 'postgres',
|
|
'PASSWORD': 'test',
|
|
|
|
# 'ENGINE': 'django.db.backends.sqlite3',
|
|
# 'NAME': PROJECT_DIR('../../db/example.db'),
|
|
# 'USER': '',
|
|
# 'PASSWORD': '',
|
|
|
|
# Empty for localhost through domain sockets or '127.0.0.1' for
|
|
# localhost through TCP.
|
|
'HOST': 'localhost',
|
|
'TEST': {
|
|
'HOST': 'localhost',
|
|
'NAME': 'fobi_tests',
|
|
'USER': 'postgres',
|
|
'PASSWORD': 'test',
|
|
}
|
|
}
|
|
}
|
|
|
|
# FeinCMS addons
|
|
|
|
INSTALLED_APPS += [
|
|
'feincms', # FeinCMS
|
|
|
|
'fobi.contrib.apps.feincms_integration', # Fobi FeinCMS app
|
|
|
|
'page', # Example
|
|
]
|
|
|
|
MIGRATION_MODULES = {
|
|
'fobi': 'fobi.migrations',
|
|
'db_store': 'fobi.contrib.plugins.form_handlers.db_store.migrations',
|
|
'page': 'page.migrations',
|
|
}
|
|
|
|
try:
|
|
from .local_settings import TEST_DATABASES as DATABASES
|
|
except:
|
|
pass
|