getting file size for all dict files to be downloaded. coming to be 400mb or so.
[worddb.git] / settings.py
blob54bc9af6bdeb71304704bb20c8fd3277ce28bce3
1 # Django settings for worddb project.
2 import path
4 SETTINGS_FILE_FOLDER = path.path(__file__).parent
6 DEBUG = True
7 TEMPLATE_DEBUG = DEBUG
9 INTERNAL_IPS = ("127.0.0.1", "localhost")
11 ADMINS = (
12 ("Amit Upadhyay", "worddb@amitu.com"),
13 ("Shweta A. V.", "ashweta@gmail.com"),
16 EMAIL_USE_TLS = True
17 EMAIL_HOST = 'smtp.gmail.com'
18 EMAIL_HOST_USER = 'youremail@gmail.com'
19 EMAIL_HOST_PASSWORD = 'yourpassword'
20 EMAIL_PORT = 587
22 MANAGERS = ADMINS
24 DATABASE_ENGINE = 'mysql'
25 DATABASE_NAME = 'iwdb'
26 DATABASE_USER = 'root'
27 DATABASE_PASSWORD = ''
28 DATABASE_HOST = ''
29 DATABASE_PORT = ''
31 TIME_ZONE = 'Asia/Calcutta'
32 LANGUAGE_CODE = 'en-us'
34 SITE_ID = 1
35 USE_I18N = True
36 MEDIA_ROOT = ''
37 MEDIA_URL = ''
38 ADMIN_MEDIA_PREFIX = '/media/'
40 SECRET_KEY = '%-=k+)whne005voq97*&of9%^7j3k_!9&vwjij6stkar%u8(^n'
42 TEMPLATE_LOADERS = (
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'
67 TEMPLATE_DIRS = (
68 SETTINGS_FILE_FOLDER.joinpath("templates"),
71 INSTALLED_APPS = (
72 'django.contrib.auth',
73 'django.contrib.contenttypes',
74 'django.contrib.sessions',
75 'django.contrib.sites',
76 'django.contrib.admin',
77 'django.contrib.admindocs',
79 'dmigrations',
80 'django_authopenid',
81 'registration',
82 'session_messages',
84 'worddb.website',
85 'worddb.words',
88 DMIGRATIONS_DIR = SETTINGS_FILE_FOLDER.joinpath("migrations")
89 DISABLE_SYNCDB = True
90 ACCOUNT_ACTIVATION_DAYS = 14
92 LOGIN_URL = "/w/accounts/signin/"
93 LOGIN_REDIRECT_URL = "/"
95 WORD_FORM_DELIMITER = "~"
97 try:
98 from local_settings import *
99 except ImportError: pass