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

69 行
1.3 KiB

  1. ###
  2. # app configuration
  3. # http://docs.pylonsproject.org/projects/pyramid/en/1.5-branch/narr/environment.html
  4. ###
  5. [app:main]
  6. use = egg:JM2L
  7. pyramid.reload_templates = false
  8. pyramid.debug_authorization = false
  9. pyramid.debug_notfound = false
  10. pyramid.debug_routematch = false
  11. pyramid.default_locale_name = fr
  12. pyramid.includes =
  13. pyramid_tm
  14. pyramid_mako
  15. pyramid_exclog
  16. sqlalchemy.url = sqlite:///%(here)s/JM2L.sqlite
  17. # Security
  18. secret_Cookies = 'secret'
  19. secret_AuthTkt = 'secret2'
  20. [server:main]
  21. use = egg:waitress#main
  22. host = 0.0.0.0
  23. port = 6543
  24. ###
  25. # logging configuration
  26. # http://docs.pylonsproject.org/projects/pyramid/en/1.5-branch/narr/logging.html
  27. ###
  28. [loggers]
  29. keys = root, jm2l, sqlalchemy
  30. [handlers]
  31. keys = console
  32. [formatters]
  33. keys = generic
  34. [logger_root]
  35. level = WARN
  36. handlers = console
  37. [logger_jm2l]
  38. level = WARN
  39. handlers =
  40. qualname = jm2l
  41. [logger_sqlalchemy]
  42. level = WARN
  43. handlers =
  44. qualname = sqlalchemy.engine
  45. # "level = INFO" logs SQL queries.
  46. # "level = DEBUG" logs SQL queries and results.
  47. # "level = WARN" logs neither. (Recommended for production systems.)
  48. [handler_console]
  49. class = StreamHandler
  50. args = (sys.stderr,)
  51. level = NOTSET
  52. formatter = generic
  53. [formatter_generic]
  54. format = %(asctime)s %(levelname)-5.5s [%(name)s][%(threadName)s] %(message)s