|
- constants = {
- "local" : {
- "mysql": {
- "db_name": "DATABASE NAME",
- "host": "DATABASE HOST",
- "user": "DATABASE USER",
- "password": "DATABASE PASSWORD",
- },
- "static_root": "/path/to/static/folder/root"
- },
- "remote" : {
- "mysql" : {
- "db_name": "DATABASE NAME",
- "host": "DATABASE HOST",
- "user": "DATABASE USER",
- "password": "DATABASE PASSWORD",
- },
- "static_root": "/path/to/static/folder/root"
- },
- "selector" : "remote"
- }
-
- # KEEP IN MIND. ONLY DECLARE YOUR PASSWORD IN CONSTANTS DURING DEVELOPMENT.
- # ONCE IN PRODUCTION, USE ENVIRONMENTAL VARIABLES
-
- constants = constants[constants["selector"]]
|