Ingen beskrivning
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 949B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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. datasource = {
  12. 'default': {
  13. 'module':pymysql,
  14. 'host': None,
  15. 'user': None,
  16. 'passwd': None,
  17. 'db': None,
  18. }
  19. }
  20. migration_options = {
  21. 'dryrun': False,
  22. 'foreign_keys': True,
  23. 'drop_if_exists': False,
  24. }
  25. em_graph_format = 'png'
  26. em_graph_output = '/tmp/em_%s_graph.png'
  27. logging = {
  28. 'stderr': {
  29. 'level': 'INFO',
  30. 'context': False,
  31. },
  32. 'logfile': {
  33. 'level': 'DEBUG',
  34. 'filename': '/tmp/lodel2.log',
  35. 'maxBytes': 1024 * 50, # rotate at 50MB
  36. 'backupCount': 10, # keep at most 10 backup
  37. 'context': True, # if false use a simpler format string
  38. }
  39. }