Le repo des sources pour le site web des JM2L
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.
 
 
 
 
 

72 line
1.4 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 = true
  8. pyramid.debug_authorization = false
  9. pyramid.debug_notfound = false
  10. pyramid.debug_routematch = false
  11. pyramid.default_locale_name = en
  12. pyramid.includes =
  13. pyramid_debugtoolbar
  14. pyramid_tm
  15. sqlalchemy.url = sqlite:///%(here)s/JM2L.sqlite
  16. # By default, the toolbar only appears for clients from IP addresses
  17. # '127.0.0.1' and '::1'.
  18. # debugtoolbar.hosts = 127.0.0.1 ::1
  19. ###
  20. # wsgi server configuration
  21. ###
  22. [server:main]
  23. use = egg:waitress#main
  24. host = 0.0.0.0
  25. port = 8080
  26. ###
  27. # logging configuration
  28. # http://docs.pylonsproject.org/projects/pyramid/en/1.5-branch/narr/logging.html
  29. ###
  30. [loggers]
  31. keys = root, jm2l, sqlalchemy
  32. [handlers]
  33. keys = console
  34. [formatters]
  35. keys = generic
  36. [logger_root]
  37. level = INFO
  38. handlers = console
  39. [logger_jm2l]
  40. level = DEBUG
  41. handlers =
  42. qualname = jm2l
  43. [logger_sqlalchemy]
  44. level = WARN
  45. handlers =
  46. qualname = sqlalchemy.engine
  47. # "level = INFO" logs SQL queries.
  48. # "level = DEBUG" logs SQL queries and results.
  49. # "level = WARN" logs neither. (Recommended for production systems.)
  50. [handler_console]
  51. class = StreamHandler
  52. args = (sys.stderr,)
  53. level = NOTSET
  54. formatter = generic
  55. [formatter_generic]
  56. format = %(asctime)s %(levelname)-5.5s [%(name)s][%(threadName)s] %(message)s