55 lines
1.0 KiB
Python
55 lines
1.0 KiB
Python
|
|
# Mandaye configuration
|
|
host = "127.0.0.1"
|
|
port = 8088
|
|
|
|
|
|
debug = True
|
|
|
|
# Needed if ssl is activate
|
|
ssl = False
|
|
keyfile = ""
|
|
certfile = ""
|
|
|
|
# Template directory
|
|
template_directory = "mandaye/templates"
|
|
|
|
# Database configuration
|
|
# Follow the rfc 1738 http://rfc.net/rfc1738.html
|
|
db_url = 'sqlite:///test.db'
|
|
|
|
|
|
#example_mapping = {
|
|
# r'/': {
|
|
# 'on_response_filters': [{
|
|
# 'type': 'data',
|
|
# 'filter': my_filter
|
|
# }]
|
|
# },
|
|
# r'/test$': {
|
|
# 'method': 'GET',
|
|
# 'response': {
|
|
# 'dispatcher_method': 'my_test',
|
|
# 'values': {
|
|
# 'toto': 'titi',
|
|
# }
|
|
# }
|
|
# },
|
|
#}
|
|
|
|
from dispatchers.default import Dispatcher
|
|
|
|
hosts = {
|
|
'localhost:8088': [
|
|
(r'/', Dispatcher('http://perdu.com/')),
|
|
],
|
|
}
|
|
|
|
session_opts = {
|
|
'session.type': 'file',
|
|
'session.cookie_expires': True,
|
|
}
|
|
|
|
from mandaye.local_config import *
|
|
|