django-fobi/examples/tutorial/local_settings.py

39 lines
1.1 KiB
Python
Raw Permalink Normal View History

2014-10-11 03:54:24 +00:00
import os
2022-07-12 20:53:28 +00:00
PROJECT_DIR = lambda base: os.path.abspath(
os.path.join(os.path.dirname(__file__), base).replace("\\", "/")
)
2014-10-11 03:54:24 +00:00
DEBUG = True
DEBUG_TOOLBAR = not True
TEMPLATE_DEBUG = True
DATABASES = {
2022-07-12 20:53:28 +00:00
"default": {
"ENGINE": "django.db.backends.sqlite3", # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.
"NAME": PROJECT_DIR(
"../db/example.db"
), # Or path to database file if using sqlite3.
2014-10-11 03:54:24 +00:00
# The following settings are not used with sqlite3:
2022-07-12 20:53:28 +00:00
"USER": "",
"PASSWORD": "",
"HOST": "", # Empty for localhost through domain sockets or '127.0.0.1' for localhost through TCP.
"PORT": "", # Set to empty string for default.
2014-10-11 03:54:24 +00:00
}
}
2022-07-12 20:53:28 +00:00
INTERNAL_IPS = ("127.0.0.1",)
2014-10-11 03:54:24 +00:00
2022-07-12 20:53:28 +00:00
EMAIL_BACKEND = "django.core.mail.backends.filebased.EmailBackend"
EMAIL_FILE_PATH = PROJECT_DIR("../tmp")
2014-10-11 03:54:24 +00:00
2022-07-12 20:53:28 +00:00
DEFAULT_FROM_EMAIL = "<no-reply@dev.django-fobi.mail.example.com>"
2014-10-11 03:54:24 +00:00
FOBI_DEBUG = True
FOBI_RESTRICT_PLUGIN_ACCESS = False
FOBI_RESTRICT_FIELDS_ACCESS = False
2022-07-12 20:53:28 +00:00
# FOBI_DEFAULT_THEME = 'foundation5'
2014-10-11 03:54:24 +00:00
WAIT_BETWEEN_TEST_STEPS = 0
FOBI_WAIT_AT_TEST_END = 0