您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

27 行
748 B

  1. constants = {
  2. "local" : {
  3. "mysql": {
  4. "db_name": "DATABASE NAME",
  5. "host": "DATABASE HOST",
  6. "user": "DATABASE USER",
  7. "password": "DATABASE PASSWORD",
  8. },
  9. "static_root": "/path/to/static/folder/root"
  10. },
  11. "remote" : {
  12. "mysql" : {
  13. "db_name": "DATABASE NAME",
  14. "host": "DATABASE HOST",
  15. "user": "DATABASE USER",
  16. "password": "DATABASE PASSWORD",
  17. },
  18. "static_root": "/path/to/static/folder/root"
  19. },
  20. "selector" : "remote"
  21. }
  22. # KEEP IN MIND. ONLY DECLARE YOUR PASSWORD IN CONSTANTS DURING DEVELOPMENT.
  23. # ONCE IN PRODUCTION, USE ENVIRONMENTAL VARIABLES
  24. constants = constants[constants["selector"]]