Le repo des sources pour le site web des JM2L
Você não pode selecionar mais de 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.
 
 
 
 
 

67 linhas
1.2 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. sqlalchemy.url = sqlite:///%(here)s/JM2L.sqlite
  15. # Security
  16. secret_Cookies = 'secret'
  17. secret_AuthTkt = 'secret2'
  18. [server:main]
  19. use = egg:waitress#main
  20. host = 0.0.0.0
  21. port = 6543
  22. ###
  23. # logging configuration
  24. # http://docs.pylonsproject.org/projects/pyramid/en/1.5-branch/narr/logging.html
  25. ###
  26. [loggers]
  27. keys = root, jm2l, sqlalchemy
  28. [handlers]
  29. keys = console
  30. [formatters]
  31. keys = generic
  32. [logger_root]
  33. level = WARN
  34. handlers = console
  35. [logger_jm2l]
  36. level = WARN
  37. handlers =
  38. qualname = jm2l
  39. [logger_sqlalchemy]
  40. level = WARN
  41. handlers =
  42. qualname = sqlalchemy.engine
  43. # "level = INFO" logs SQL queries.
  44. # "level = DEBUG" logs SQL queries and results.
  45. # "level = WARN" logs neither. (Recommended for production systems.)
  46. [handler_console]
  47. class = StreamHandler
  48. args = (sys.stderr,)
  49. level = NOTSET
  50. formatter = generic
  51. [formatter_generic]
  52. format = %(asctime)s %(levelname)-5.5s [%(name)s][%(threadName)s] %(message)s