development.ini 4.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. #
  2. # pboard - TurboGears 2 development environment configuration
  3. #
  4. # The %(here)s variable will be replaced with the parent directory of this file
  5. #
  6. # This file is for deployment specific config options -- other configuration
  7. # that is always required for the app is done in the config directory,
  8. # and generally should not be modified by end users.
  9. [DEFAULT]
  10. debug = true
  11. # Uncomment and replace with the address which should receive any error reports
  12. #email_to = you@yourdomain.com
  13. smtp_server = localhost
  14. error_email_from = turbogears@localhost
  15. [server:main]
  16. use = egg:gearbox#wsgiref
  17. host = 0.0.0.0
  18. port = 8080
  19. [sa_auth]
  20. cookie_secret = 3283411b-1904-4554-b0e1-883863b53080
  21. [app:main]
  22. use = egg:pboard
  23. full_stack = true
  24. #lang = ru
  25. cache_dir = %(here)s/data
  26. beaker.session.key = pboard
  27. beaker.session.secret = 3283411b-1904-4554-b0e1-883863b53080
  28. #By default session is store in cookies to avoid the overhead
  29. #of having to manage a session storage. On production you might
  30. #want to switch to a better session storage.
  31. beaker.session.type = cookie
  32. beaker.session.validate_key = 3283411b-1904-4554-b0e1-883863b53080
  33. # Disable template autoreload to boost performances in production
  34. # WARNING: if you want to deploy your application using a zipped egg
  35. # (ie: if your application's setup.py defines zip-safe=True, then you
  36. # MUST put "false" for the production environment because there will
  37. # be no disk and real files to compare time with.
  38. #auto_reload_templates = false
  39. # If you'd like to fine-tune the individual locations of the cache data dirs
  40. # for the Cache data, or the Session saves, un-comment the desired settings
  41. # here:
  42. #beaker.cache.data_dir = %(here)s/data/cache
  43. #beaker.session.data_dir = %(here)s/data/sessions
  44. # pick the form for your database
  45. # %(here) may include a ':' character on Windows environments; this can
  46. # invalidate the URI when specifying a SQLite db via path name
  47. # sqlalchemy.url=postgres://username:password@hostname:port/databasename
  48. # sqlalchemy.url=mysql://username:password@hostname:port/databasename
  49. # If you have sqlite, here's a simple default to get you started
  50. # in development
  51. #sqlalchemy.url = postgres://pboard:pboard@127.0.0.1:5432/pboarddb
  52. sqlalchemy.url = postgres://pod_protov1_dev:pod_protov1_dev_password@127.0.0.1:5432/pod_protov1_dev
  53. #echo shouldn't be used together with the logging module.
  54. sqlalchemy.echo = false
  55. sqlalchemy.echo_pool = false
  56. sqlalchemy.pool_recycle = 3600
  57. # This line ensures that Genshi will render xhtml when sending the
  58. # output. Change to html or xml, as desired.
  59. templating.genshi.method = xhtml
  60. templating.genshi.doctype = html5
  61. # the compiled template dir is a directory that must be readable and writable
  62. # by your webserver. It will be used to store the resulting templates once
  63. # compiled by the TemplateLookup system.
  64. # During development you generally don't need this option since paste's HTTP
  65. # server will have access to you development directories, but in production
  66. # you'll most certainly want to have apache or nginx to write in a directory
  67. # that does not contain any source code in any form for obvious security
  68. # reasons. If disabled, None, False, or not writable, it will fall back
  69. # to an in-memory cache.
  70. templating.mako.compiled_templates_dir = %(here)s/data/templates
  71. # WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT*
  72. # Debug mode will enable the interactive debugging tool, allowing ANYONE to
  73. # execute malicious code after an exception is raised.
  74. #set debug = false
  75. # Logging configuration
  76. # Add additional loggers, handlers, formatters here
  77. # Uses python's logging config file format
  78. # http://docs.python.org/lib/logging-config-fileformat.html
  79. #turn this setting to "min" if you would like tw to produce minified
  80. #javascript files (if your library supports that)
  81. toscawidgets.framework.resource_variant=debug
  82. [loggers]
  83. keys = root, pboard, sqlalchemy, auth
  84. [handlers]
  85. keys = console
  86. [formatters]
  87. keys = generic
  88. # If you create additional loggers, add them as a key to [loggers]
  89. [logger_root]
  90. level = INFO
  91. handlers = console
  92. [logger_pboard]
  93. level = DEBUG
  94. handlers =
  95. qualname = pboard
  96. [logger_sqlalchemy]
  97. level = INFO
  98. handlers =
  99. qualname = sqlalchemy.engine
  100. # "level = INFO" logs SQL queries.
  101. # "level = DEBUG" logs SQL queries and results.
  102. # "level = WARN" logs neither. (Recommended for production systems.)
  103. # A logger for authentication, identification and authorization
  104. # this is repoze.who:
  105. [logger_auth]
  106. level = WARN
  107. handlers =
  108. qualname = auth
  109. # If you create additional handlers, add them as a key to [handlers]
  110. [handler_console]
  111. class = StreamHandler
  112. args = (sys.stderr,)
  113. level = NOTSET
  114. formatter = generic
  115. # If you create additional formatters, add them as a key to [formatters]
  116. [formatter_generic]
  117. format = %(asctime)s,%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
  118. datefmt = %H:%M:%S