forked from SazhnevWIS/noodles_blog
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.py
58 lines (47 loc) · 1.46 KB
/
config.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
# -*- coding: utf-8 -*-
'''
filedesc: default boilerplate config for a new noodles project
'''
import os
NO_GEVENT_MONKEYPATCH=False
DEBUG = True
TESTING = True
AUTO_STOP = True
HOST='localhost'
USE_ALCHEMY_MW=False
# Specify the server port
PORT = 8090
ENCODING = 'utf-8' # default application encoding
APP_DIR = os.path.dirname(os.path.abspath(__file__))
# Specify URL resolver module, this must contain get_map
# function which returnes mapper object
# urls.py module is default
URL_RESOLVER = 'urls'
# Specify controllers modules
CONTROLLERS = ['controllers','article_controller','user_controller', 'noodles.utils.static']
# Specify Redis-server host there
REDIS_HOST = 'localhost'
# Specify root dir for static content here
STATIC_ROOT = os.path.join(APP_DIR, 'static')
# Specify here a template directories
TEMPLATE_DIRS = [
os.path.join(APP_DIR, 'templates'),
# Add here other directories if you need
]
# Specify here mako temporary dir for precompiled templates
MAKO_TMP_DIR = os.path.join(APP_DIR, 'tmp/modules')
MIDDLEWARES = [
# Specify list of middlewares used in your application here
#'noodles.middleware.session.SessionMiddleware',
]
SERVER_LOGTYPE = 'default'
####Mail parameters
NOODLES_ERROR_RECIPIENT = [
#List with default error mail recipient
]
NOODLES_ERROR_SENDER = 'noodles_error@example.com'
MAIL_SERVER = 'smtp.example.com'
MAIL_PORT = 587
MAIL_LOGIN = 'your smtp mail login'
MAIL_PASSWORD = 'your smtp mail password'
EXCEPTION_FLAVOR = 'html'