-
Notifications
You must be signed in to change notification settings - Fork 2
/
settings.py
36 lines (31 loc) · 830 Bytes
/
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
from os import path
import tempfile
# Flask
APP_NAME = 'keec'
DEBUG = True
SERVER_HOST = 'localhost'
SERVER_PORT = 1080
SECRET_KEY = '8lsbAgXecB'
# Localization
CURRENT_TIMEZONE = 'Asia/Riyadh'
FALLBACK_LOCALE = 'en'
# Paths
APP_ROOT = path.dirname(path.abspath(__file__))
DATA_ROOT = path.join(APP_ROOT, 'models')
STATIC_ROOT = path.join(APP_ROOT, 'static')
OUTPUT_ROOT = tempfile.gettempdir()
#MongoDB
MONGO_HOST = 'localhost'
MONGO_PORT = 27017
MONGO_DBNAME = 'keec'
# Compress
COMPRESS_MIN_SIZE = 50
COMPRESS_MIMETYPES = [
'text/html',
'text/css',
'text/xml',
'application/json',
'application/javascript',
'image/jpeg',
'image/png'
]