-
Notifications
You must be signed in to change notification settings - Fork 7
/
config.py
46 lines (35 loc) · 1.8 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
"""
config.py
author: [email protected]
========================
This file acts as the configuration holder for the environment.
If you want to define a global configuration please define it here.
Naming convention:
- Use capital letters.
- If needed, use underscores ('_') as separators between words
"""
import os
# Do not change these values!
BASEDIR = os.path.abspath(os.path.dirname(__file__))
SQLALCHEMY_MIGRATE_REPO = os.path.join(BASEDIR, 'db_repository')
# Add list of python libraries you wish to install on startup in this list
# Example:
# additional_packages = ['flask-mail','nose']
ADDITIONAL_PACKAGES = []
# Select the database connectivity that you wish to use.
# THe current value defaults to sqlite
#SQLALCHEMY_DATABASE_URI = 'mysql://root:[email protected]/flasklearn' # << use this for MySQL, adjust accordingly
SQLALCHEMY_DATABASE_URI = 'sqlite:///' + os.path.join(BASEDIR, 'db/app.db') # << use this for SQLite, adjust accordingly
#SQLALCHEMY_DATABASE_URI = 'postgresql://scott:tiger@localhost/mydatabase' #<< use this for postgresql, adjust accordingly
#SQLALCHEMY_DATABASE_URI = 'oracle://scott:[email protected]:1521/sidname' #<< use this for oracle, adjust accordingly
# This is the default server port settings that will be used by the system
SERVER_PORT = 5000
#this is to determine the white space used in generating the controllers. You can change it accordinly to your preferance.
WHITE_SPACE = "\t"
# This variable will be used to check the valid data types enterred by the user in box.py -n command.
VALID_DATA_TYPES = [
'boolean', 'date', 'time', 'datetime', 'enum', 'interval', 'pickletype', 'schematype',
'numeric', 'float', 'biginteger', 'smallinteger', 'smallint', 'string', 'bigint','int','integer',
'text', 'unicode', 'unicodetext', 'binary', 'largebinary', 'blob'
]
# end of file