No Description
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 1.1KB

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