mirror of
https://github.com/jazzband/django-axes.git
synced 2026-03-16 22:30:23 +00:00
26 lines
940 B
Text
26 lines
940 B
Text
import os
|
|
PROJECT_DIR = lambda base : os.path.abspath(os.path.join(os.path.dirname(__file__), base).replace('\\','/'))
|
|
|
|
DEBUG = True
|
|
DEBUG_TOOLBAR = not True
|
|
TEMPLATE_DEBUG = DEBUG
|
|
|
|
DATABASES = {
|
|
'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.
|
|
|
|
# The following settings are not used with sqlite3:
|
|
'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.
|
|
}
|
|
}
|
|
|
|
INTERNAL_IPS = ('127.0.0.1',)
|
|
|
|
EMAIL_BACKEND = 'django.core.mail.backends.filebased.EmailBackend'
|
|
EMAIL_FILE_PATH = PROJECT_DIR('../tmp')
|
|
|
|
DEFAULT_FROM_EMAIL = '<no-reply@example.com>'
|