development.ini.base 4.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. #
  2. # pod - 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:pod
  23. full_stack = true
  24. #lang = fr_FR
  25. cache_dir = %(here)s/data
  26. beaker.session.key = pod
  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=postgresql://username:password@hostname:port/databasename
  48. # sqlalchemy.url=mysql://username:password@hostname:port/databasename
  49. sqlalchemy.url = postgresql://pod_user:pod_user_password@127.0.0.1:5432/pod
  50. #echo shouldn't be used together with the logging module.
  51. sqlalchemy.echo = false
  52. sqlalchemy.echo_pool = false
  53. sqlalchemy.pool_recycle = 3600
  54. # This line ensures that Genshi will render xhtml when sending the
  55. # output. Change to html or xml, as desired.
  56. templating.genshi.method = xhtml
  57. templating.genshi.doctype = html5
  58. # the compiled template dir is a directory that must be readable and writable
  59. # by your webserver. It will be used to store the resulting templates once
  60. # compiled by the TemplateLookup system.
  61. # During development you generally don't need this option since paste's HTTP
  62. # server will have access to you development directories, but in production
  63. # you'll most certainly want to have apache or nginx to write in a directory
  64. # that does not contain any source code in any form for obvious security
  65. # reasons. If disabled, None, False, or not writable, it will fall back
  66. # to an in-memory cache.
  67. templating.mako.compiled_templates_dir = %(here)s/data/templates
  68. # WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT*
  69. # Debug mode will enable the interactive debugging tool, allowing ANYONE to
  70. # execute malicious code after an exception is raised.
  71. #set debug = false
  72. # Logging configuration
  73. # Add additional loggers, handlers, formatters here
  74. # Uses python's logging config file format
  75. # http://docs.python.org/lib/logging-config-fileformat.html
  76. #turn this setting to "min" if you would like tw to produce minified
  77. #javascript files (if your library supports that)
  78. toscawidgets.framework.resource_variant=debug
  79. # if you want to setup analytics like piwik or google analytics, then put the js code in a file and set file path below
  80. #js_tracker_path = analytics.js
  81. [loggers]
  82. keys = root, pod, sqlalchemy, auth
  83. [handlers]
  84. keys = console
  85. [formatters]
  86. keys = generic
  87. # If you create additional loggers, add them as a key to [loggers]
  88. [logger_root]
  89. level = INFO
  90. handlers = console
  91. [logger_pod]
  92. level = DEBUG
  93. handlers =
  94. qualname = pod
  95. [logger_sqlalchemy]
  96. level = INFO
  97. handlers =
  98. qualname = sqlalchemy.engine
  99. # "level = INFO" logs SQL queries.
  100. # "level = DEBUG" logs SQL queries and results.
  101. # "level = WARN" logs neither. (Recommended for production systems.)
  102. # A logger for authentication, identification and authorization
  103. # this is repoze.who:
  104. [logger_auth]
  105. level = WARN
  106. handlers =
  107. qualname = auth
  108. # If you create additional handlers, add them as a key to [handlers]
  109. [handler_console]
  110. class = StreamHandler
  111. args = (sys.stderr,)
  112. level = NOTSET
  113. formatter = generic
  114. # If you create additional formatters, add them as a key to [formatters]
  115. [formatter_generic]
  116. format = %(asctime)s,%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
  117. datefmt = %H:%M:%S