{{cookiecutter.project_slug}}/etc/development.ini
changeset 0 186ad038b0d9
child 8 4d3cdf2098e3
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/{{cookiecutter.project_slug}}/etc/development.ini	Wed Jun 07 15:43:34 2017 +0200
@@ -0,0 +1,169 @@
+
+[app:main]
+use = egg:{{ cookiecutter.webapp_name }}
+
+pyramid.reload_templates = true
+pyramid.debug_templates = true
+pyramid.debug_authorization = false
+pyramid.debug_notfound = false
+pyramid.debug_routematch = false
+pyramid.default_locale_name = en
+pyramid.includes =
+    pyramid_zcml
+    pyramid_debugtoolbar
+    pyramid_beaker
+    pyramid_chameleon
+    pyramid_fanstatic
+    pyramid_zodbconn
+    pyramid_tm
+{%- if cookiecutter.use_elasticsearch %}
+    pyramid_es
+{%- endif %}
+    pyramid_rpc.jsonrpc
+    pyams_template
+    pyams_viewlet
+    pyams_pagelet
+    pyams_utils
+    pyams_skin
+    pyams_form
+    pyams_file
+    pyams_i18n
+    pyams_security
+    pyams_zmi
+    pyams_zodbbrowser
+    pyams_catalog
+    pyams_mail
+{%- if cookiecutter.use_ldap %}
+    pyams_ldap
+{%- endif %}
+    pyams_alchemy
+    pyams_zmq
+    pyams_scheduler
+    pyams_workflow
+    pyams_thesaurus
+    pyams_sequence
+    pyams_portal
+    pyams_media
+    pyams_notify
+{%- if cookiecutter.need_pyams_gis %}
+    pyams_gis
+{%- endif %}
+    pyams_content
+{%- if cookiecutter.use_elasticsearch %}
+    pyams_content_es
+{%- endif %}
+    pyams_default_theme
+{%- if cookiecutter.extension_package %}
+    {{ cookiecutter.extension_package }}
+{%- endif %}
+
+tm.attempts = 3
+zodbconn.uri = zconfig://%(here)s/zodb-zeo.conf
+
+# By default, the toolbar only appears for clients from IP addresses
+# '127.0.0.1' and '::1'.
+debugtoolbar.hosts = 127.0.0.1 ::1
+
+# fanstatic settings
+fanstatic.use_application_uri = true
+fanstatic.publisher_signature = --static--
+fanstatic.versioning = true
+fanstatic.minified = false
+fanstatic.bottom = true
+fanstatic.debug = true
+
+{%- if cookiecutter.use_elasticsearch %}
+# ElasticSearch settings
+elastic.server = {{ cookiecutter.elasticsearch_server }}
+elastic.index = {{ cookiecutter.elasticsearch_index }}
+{%- endif %}
+
+# Beaker session
+beaker.session.type = {{ cookiecutter.beaker_backend }}
+beaker.session.url = {{ cookiecutter.beaker_server }}
+beaker.session.data_dir = $((INSTALL))/var/cache
+beaker.session.lock_dir = $((INSTALL))/var/locks
+
+# Beaker cache
+beaker.cache.type = {{ cookiecutter.beaker_backend }}
+beaker.cache.url = {{ cookiecutter.beaker_server }}
+beaker.cache.data_dir = $((INSTALL))/var/cache
+beaker.cache.lock_dir = $((INSTALL))/var/locks
+beaker.cache.regions = short, default, long, persistent
+beaker.cache.short.expire = 60
+beaker.cache.default.expire = 300
+beaker.cache.long.expire = 3600
+beaker.cache.persistent.expire = 604800
+
+# PyAMS application factory
+pyams.application_factory = pyams_content.root.SiteRoot
+pyams.application_name = pyams
+
+# PyAMS mailer
+pyams_mail.mailers = {{ cookiecutter.smtp_server_name }}.
+{{ cookiecutter.smtp_server_name }}.name = {{ cookiecutter.smtp_server_name }}
+{{ cookiecutter.smtp_server_name }}.host = {{ cookiecutter.smtp_server }}
+{{ cookiecutter.smtp_server_name }}.queue_path = $((INSTALL))/var/mail
+
+# PyAMS ØMQ TCP handlers
+pyams_scheduler.tcp_handler = {{ cookiecutter.pyams_scheduler }}
+pyams_media.tcp_handler = {{ cookiecutter.pyams_medias_converter }}
+pyams_content.es.tcp_handler = {{ cookiecutter.pyams_es_indexer }}
+pyams_notify.tcp_handler = {{ cookiecutter.pyams_ws_notify }}
+pyams_notify_ws.cache_server = {{ cookiecutter.beaker_backend }}://{{ cookiecutter.beaker_server }}
+
+
+# PyAMS content settings
+pyams_content.lexicon.languages = {{ cookiecutter.lexicon_languages }}
+
+pyams_content.config.tools_name = tools
+
+pyams_content.config.news_tool_factory = pyams_content.shared.news.manager.NewsManager
+pyams_content.config.news_tool_name = news
+
+pyams_content.config.imagemaps_tool_factory = pyams_content.shared.imagemaps.manager.ImageMapsManager
+pyams_content.config.imagemaps_tool_name = news
+
+
+###
+# wsgi server configuration
+###
+
+[server:main]
+use = egg:waitress#main
+host = 0.0.0.0
+port = {{ cookiecutter.webapp_port }}
+
+max_request_body_size = 10737418240
+
+
+###
+# logging configuration
+###
+
+[loggers]
+keys = root, {{ cookiecutter.project_slug }}
+
+[handlers]
+keys = console
+
+[formatters]
+keys = generic
+
+[logger_root]
+level = DEBUG
+handlers = console
+
+[logger_{{ cookiecutter.project_slug }}]
+level = DEBUG
+handlers =
+qualname = {{ cookiecutter.project_slug }}
+
+[handler_console]
+class = StreamHandler
+args = (sys.stderr,)
+level = NOTSET
+formatter = generic
+
+[formatter_generic]
+format = %(asctime)s %(levelname)-5.5s [%(name)s][%(threadName)s] %(message)s