1 # Django settings for worddb project.
4 SETTINGS_FILE_FOLDER
= path
.path(__file__
).parent
9 INTERNAL_IPS
= ("127.0.0.1", "localhost")
12 ("Amit Upadhyay", "worddb@amitu.com"),
13 ("Shweta A. V.", "ashweta@gmail.com"),
17 EMAIL_HOST
= 'smtp.gmail.com'
18 EMAIL_HOST_USER
= 'youremail@gmail.com'
19 EMAIL_HOST_PASSWORD
= 'yourpassword'
24 DATABASE_ENGINE
= 'mysql'
25 DATABASE_NAME
= 'iwdb'
26 DATABASE_USER
= 'root'
27 DATABASE_PASSWORD
= ''
31 TIME_ZONE
= 'Asia/Calcutta'
32 LANGUAGE_CODE
= 'en-us'
38 ADMIN_MEDIA_PREFIX
= '/media/'
40 SECRET_KEY
= '%-=k+)whne005voq97*&of9%^7j3k_!9&vwjij6stkar%u8(^n'
43 'django.template.loaders.filesystem.load_template_source',
44 'django.template.loaders.app_directories.load_template_source',
47 TEMPLATE_CONTEXT_PROCESSORS
= (
48 "django.core.context_processors.auth",
49 "django.core.context_processors.debug",
50 "django.core.context_processors.request",
51 "django.core.context_processors.i18n",
53 "session_messages.context_processors.session_messages",
56 MIDDLEWARE_CLASSES
= (
57 'django.middleware.common.CommonMiddleware',
58 'django.contrib.sessions.middleware.SessionMiddleware',
59 'django.contrib.auth.middleware.AuthenticationMiddleware',
60 'django.middleware.doc.XViewMiddleware',
62 'worddb.utils.AJAXSimpleExceptionResponse',
65 ROOT_URLCONF
= 'worddb.urls'
68 SETTINGS_FILE_FOLDER
.joinpath("templates"),
72 'django.contrib.auth',
73 'django.contrib.contenttypes',
74 'django.contrib.sessions',
75 'django.contrib.sites',
76 'django.contrib.admin',
77 'django.contrib.admindocs',
88 DMIGRATIONS_DIR
= SETTINGS_FILE_FOLDER
.joinpath("migrations")
90 ACCOUNT_ACTIVATION_DAYS
= 14
92 LOGIN_URL
= "/w/accounts/signin/"
93 LOGIN_REDIRECT_URL
= "/"
95 WORD_FORM_DELIMITER
= "~"
98 from local_settings
import *
99 except ImportError: pass