-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathlocal_settings.py
76 lines (59 loc) · 1.98 KB
/
local_settings.py
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
# -*- coding:utf-8 -*-
DEBUG = True
# Make these unique, and don't share it with anybody.
SECRET_KEY = "18efe6c9-2430-48ab-a656-fc5983cdcce2354b4575-1b4b-46d0-97ae-70ac419be439ebcc7771-9c01-4a95-b3c0-f9a757a66ce7"
NEVERCACHE_KEY = "bfe26cda-75bf-4c5b-b7cd-85be601222f75aa9c632-4618-42fb-b1c9-d48a8bdaa65bc556a0cc-b865-4e7c-b9d1-99374d5352c3"
DATABASES = {
"default": {
# Ends with "postgresql_psycopg2", "mysql", "sqlite3" or "oracle".
"ENGINE": "django.db.backends.sqlite3",
# DB name or path to database file if using sqlite3.
"NAME": "dev.db",
# Not used with sqlite3.
"USER": "",
# Not used with sqlite3.
"PASSWORD": "",
# Set to empty string for localhost. Not used with sqlite3.
"HOST": "",
# Set to empty string for default. Not used with sqlite3.
"PORT": "",
}
}
# add by weiguobin
INSTALLED_APPS = (
"django.contrib.admin",
"django.contrib.auth",
"django.contrib.contenttypes",
"django.contrib.redirects",
"django.contrib.sessions",
"django.contrib.sites",
"django.contrib.sitemaps",
"django.contrib.staticfiles",
"mezzanine.boot",
"mezzanine.conf",
"mezzanine.core",
"mezzanine.generic",
# "mezzanine.blog",
"mezzanine.forms",
"mezzanine.pages",
# "mezzanine.galleries",
# "mezzanine.twitter",
"mezzanine.accounts",
"mezzanine.mobile",
)
USE_I18N = True
ALLOWED_HOSTS = ['']
LANGUAGE_CODE = 'zh-cn'
# LANGUAGE_CODE = 'en'
TIME_ZONE = 'Asia/Shanghai'
DEFAULT_CHARSET='utf-8'
# add begin by weiguobin at 2014-06-26 for add settings.PAGES_SLUG_INDIVIDUAL_CENTER
PAGES_SLUG_INDIVIDUAL_CENTER = "/individual center"
# add end by weiguobin at 2014-06-26 for add settings.PAGES_SLUG_INDIVIDUAL_CENTER
# 用户注册需要邮件确认
ACCOUNTS_VERIFICATION_REQUIRED = True
#服务器发邮件的邮箱配置
EMAIL_HOST = 'smtp.gmail.com'
EMAIL_HOST_USER='weiwgb@gmail.com'
EMAIL_HOST_PASSWORD='wgb881537'
EMAIL_USE_TLS = True