100 lines
2.5 KiB
INI
100 lines
2.5 KiB
INI
###
|
|
# app configuration
|
|
# http://docs.pylonsproject.org/projects/pyramid/en/latest/narr/environment.html
|
|
###
|
|
|
|
[app:main]
|
|
use = egg:aem_gestion
|
|
|
|
pyramid.reload_templates = true
|
|
pyramid.debug_authorization = false
|
|
pyramid.debug_notfound = false
|
|
pyramid.debug_routematch = false
|
|
pyramid.default_locale_name = en
|
|
pyramid.includes =
|
|
pyramid_chameleon
|
|
pyramid_debugtoolbar
|
|
pyramid_layout
|
|
pyramid_mailer
|
|
pyramid_tm
|
|
|
|
sqlalchemy.url = mysql://phuoc:phuoc!@127.0.0.1/bd_aem?charset=utf8
|
|
#sqlalchemy.url = mysql://root:phuoc@srv-dc/bd_aem?charset=utf8
|
|
|
|
aem_gestion.justifs_url = aem_gestion:static/JUSTIFS/
|
|
aem_gestion.justifs_dir = /JUSTIFS
|
|
|
|
#aem_gestion.admin_email = no-reply@marietton.com
|
|
# Mailer configuration
|
|
#mail.host = smtp.ankaa.fr
|
|
#mail.port = 25
|
|
|
|
aem_gestion.admin_email = cao.thien-phuoc@orange.fr
|
|
mail.host = smtp.orange.fr
|
|
mail.port = 25
|
|
|
|
# By default, the toolbar only appears for clients from IP addresses
|
|
# '127.0.0.1' and '::1'.
|
|
# debugtoolbar.hosts = 127.0.0.1 ::1
|
|
debugtoolbar.panels =
|
|
pyramid_debugtoolbar.panels.versions.VersionDebugPanel
|
|
pyramid_debugtoolbar.panels.settings.SettingsDebugPanel
|
|
pyramid_debugtoolbar.panels.headers.HeaderDebugPanel
|
|
pyramid_debugtoolbar.panels.request_vars.RequestVarsDebugPanel
|
|
pyramid_debugtoolbar.panels.renderings.RenderingsDebugPanel
|
|
pyramid_debugtoolbar.panels.logger.LoggingPanel
|
|
pyramid_debugtoolbar.panels.performance.PerformanceDebugPanel
|
|
pyramid_debugtoolbar.panels.routes.RoutesDebugPanel
|
|
pyramid_debugtoolbar.panels.sqla.SQLADebugPanel
|
|
pyramid_debugtoolbar.panels.tweens.TweensDebugPanel
|
|
pyramid_debugtoolbar.panels.introspection.IntrospectionDebugPanel
|
|
|
|
###
|
|
# wsgi server configuration
|
|
###
|
|
|
|
[server:main]
|
|
use = egg:waitress#main
|
|
host = 0.0.0.0
|
|
port = 6544
|
|
|
|
###
|
|
# logging configuration
|
|
# http://docs.pylonsproject.org/projects/pyramid/en/latest/narr/logging.html
|
|
###
|
|
|
|
[loggers]
|
|
keys = root, aem_gestion, sqlalchemy
|
|
|
|
[handlers]
|
|
keys = console
|
|
|
|
[formatters]
|
|
keys = generic
|
|
|
|
[logger_root]
|
|
level = INFO
|
|
handlers = console
|
|
|
|
[logger_aem_gestion]
|
|
level = DEBUG
|
|
handlers =
|
|
qualname = aem_gestion
|
|
|
|
[logger_sqlalchemy]
|
|
level = INFO
|
|
handlers =
|
|
qualname = sqlalchemy.engine
|
|
# "level = INFO" logs SQL queries.
|
|
# "level = DEBUG" logs SQL queries and results.
|
|
# "level = WARN" logs neither. (Recommended for production systems.)
|
|
|
|
[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
|