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.
 
 
 
 
 

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