You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
906 B
35 lines
906 B
import os
|
|
|
|
# Statement for enabling the development environment
|
|
DEBUG = True
|
|
|
|
# Define the application directory
|
|
BASE_DIR = os.path.abspath(os.path.dirname(__file__))
|
|
|
|
# Define the database - we are working with
|
|
# SQLite for this example
|
|
SQLALCHEMY_DATABASE_URI = 'oracle+cx_oracle://whpr:password@tpe3.wanhai.com:1526/whl2'
|
|
DATABASE_CONNECT_OPTIONS = {
|
|
"PRE_CONNECT": False
|
|
}
|
|
|
|
WHL_FAMILY_ID = ''
|
|
WHL_FAMILY_PW = ''
|
|
|
|
# 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 = "secret"
|
|
|
|
# Secret key for signing cookies
|
|
SECRET_KEY = "secret"
|
|
|
|
JSON_AS_ASCII = False
|