Le repo des sources pour le site web des JM2L
Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.

production.ini 1.3 KiB

9 anni fa
9 anni fa
9 anni fa
9 anni fa
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