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.
 
 
 
 
 

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