You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

64 lines
2.2 KiB

# -*- coding: utf-8 -*-
from settings import *
DEBUG = True
TEMPLATE_DEBUG = DEBUG
ADMINS = (
('andrey.goo', 'andrey.goo@gmail.com'),
)
MANAGERS = ADMINS
SERVER_EMAIL = 'pensfond@localhost' # email that error messages come from
DEFAULT_FROM_EMAIL = 'pensfond@localhost' # email that other messages come from. default email for EmailMessage
ALLOWED_HOSTS = ['*']
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.
'NAME': 'pensfond', # Or path to database file if using sqlite3.
'USER': 'pensfond', # Not used with sqlite3.
'PASSWORD': 'pensfond', # Not used with sqlite3.
'HOST': '', # Set to empty string for localhost. Not used with sqlite3.
'PORT': '', # Set to empty string for default. Not used with sqlite3.
}
}
EMAIL_BACKEND = 'eml_email_backend.EmailBackend'
EMAIL_FILE_PATH = path('../../tmp_emails')
CACHES = {
'default': {
'BACKEND': 'django.core.cache.backends.locmem.LocMemCache',
#'BACKEND': 'django.core.cache.backends.dummy.DummyCache',
}
}
DEVSERVER_DEFAULT_PORT = '8080'
DEVSERVER_MODULES = ()
INSTALLED_APPS += ('devserver',)
if False and 'debug_toolbar' not in INSTALLED_APPS:
MIDDLEWARE_CLASSES += ('debug_toolbar.middleware.DebugToolbarMiddleware',)
INSTALLED_APPS += ('debug_toolbar',)
DEBUG_TOOLBAR_PANELS = (
#'debug_toolbar.panels.version.VersionDebugPanel',
'debug_toolbar.panels.timer.TimerDebugPanel',
'debug_toolbar.panels.settings_vars.SettingsVarsDebugPanel',
'debug_toolbar.panels.headers.HeaderDebugPanel',
'debug_toolbar.panels.request_vars.RequestVarsDebugPanel',
'debug_toolbar.panels.template.TemplateDebugPanel',
'debug_toolbar.panels.sql.SQLDebugPanel',
'debug_toolbar.panels.cache.CacheDebugPanel',
'debug_toolbar.panels.logger.LoggingPanel',
)
INTERNAL_IPS = ('127.0.0.1',)
DEBUG_TOOLBAR_CONFIG = {
'EXCLUDE_URLS': ('/admin',),
'INTERCEPT_REDIRECTS': False,
}