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.

development.ini 1.5 KiB

9 年之前
9 年之前
9 年之前
9 年之前
9 年之前
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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 = INFO
  43. handlers = console
  44. [logger_jm2l]
  45. level = DEBUG
  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