forked from psyclone241/kjv-pce-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.example.py
38 lines (28 loc) · 1009 Bytes
/
config.example.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
#!/usr/bin/env python
# Statement for enabling the development environment
DEBUG = True
# Define the application directory
import os
BASE_DIR = os.path.abspath(os.path.dirname(__file__))
# Application threads. A common general assumption is
# using 2 per available processor cores - to handle
# incoming requests using one and performing background
# operations using the other.
THREADS_PER_PAGE = 2
# Enable protection agains *Cross-site Request Forgery (CSRF)*
CSRF_ENABLED = True
# Use a secure, unique and absolutely secret key for
# signing the data.
CSRF_SESSION_KEY = "secret1"
# Secret key for signing cookies
SECRET_KEY = "secret2"
IP_ADDRESS = "192.168.1.6"
PORT = 9100
PLUGINS = ['app.mod_bible.controllers.mod_bible']
# Define the database - we are working with
# 'mysql://user:password@localhost/mlt_bible'
SQLALCHEMY_BINDS = {
'mod_bible': 'sqlite:///' + os.path.join(BASE_DIR, 'data/mod_bible/kjv-pce-v2.db')
}
SQLALCHEMY_TRACK_MODIFICATIONS = False
DATABASE_CONNECT_OPTIONS = {}