forked from ezl/hnofficehours
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsettings_local.copy
82 lines (68 loc) · 2.59 KB
/
settings_local.copy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
from settings import *
import logging
logging.basicConfig(level=logging.DEBUG,)
#SITE_ID = 1 # Put your debug site id here.
#SESSION_COOKIE_DOMAIN = 'example.com' # Put your domain here.
ADMINS = (
# ('Your Name', '[email protected]'),
)
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
'NAME': 'db_dev.sqlite3', # Or path to database file if using sqlite3.
'USER': '', # Not used with sqlite3.
'PASSWORD': '', # 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.
}
}
MIDDLEWARE_CLASSES = (
'django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'debug_toolbar.middleware.DebugToolbarMiddleware',
)
INSTALLED_APPS = (
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.messages',
# Uncomment the next line to enable the admin:
'django.contrib.admin',
# third-party apps:
'ajax_select',
'django_extensions',
'schedule',
'timezones',
# local apps:
'officehours',
'profiles',
'registration',
'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.signals.SignalDebugPanel',
'debug_toolbar.panels.logger.LoggingPanel',
)
DEBUG_TOOLBAR_CONFIG = {
'SHOW_TOOLBAR_CALLBACK': lambda x: True,
'INTERCEPT_REDIRECTS': False,
}
# Print email to console, Django>=1.2
EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
# Print email to console, Django < 1.2
# before using the dev server, run this command:
# python -m smtpd -n -c DebuggingServer localhost:1025
# see http://docs.djangoproject.com/en/1.1/topics/email/#testing-e-mail-sending
EMAIL_HOST='localhost'
EMAIL_PORT='1025'