Le repo des sources pour le site web des JM2L
Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

production.ini 1.3 KiB

há 9 anos
há 9 anos
há 9 anos
há 9 anos
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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