설명 없음
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.

settings.py 931B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. #-*- coding:utf8 -*-
  2. ## @package settings Configuration file
  3. import os
  4. import os.path
  5. lodel2_lib_path = os.path.dirname(os.path.abspath(__file__))
  6. base_path = os.path.dirname(os.path.abspath(__file__))
  7. debug = False
  8. debug_sql = False
  9. plugins = ['dummy', 'dummy_auth']
  10. datasource = {
  11. 'default': {
  12. 'module':None,
  13. 'host': None,
  14. 'user': None,
  15. 'passwd': None,
  16. 'db': None,
  17. }
  18. }
  19. migration_options = {
  20. 'dryrun': False,
  21. 'foreign_keys': True,
  22. 'drop_if_exists': False,
  23. }
  24. em_graph_format = 'png'
  25. em_graph_output = '/tmp/em_%s_graph.png'
  26. logging = {
  27. 'stderr': {
  28. 'level': 'INFO',
  29. 'context': False,
  30. },
  31. 'logfile': {
  32. 'level': 'DEBUG',
  33. 'filename': '/tmp/lodel2.log',
  34. 'maxBytes': 1024 * 50, # rotate at 50MB
  35. 'backupCount': 10, # keep at most 10 backup
  36. 'context': True, # if false use a simpler format string
  37. }
  38. }