Little fixed in bug of mimetypes in index.py

This commit is contained in:
Antonio de la Rosa 2016-04-03 04:02:48 +02:00
parent e23bd6cf37
commit 79485fc599
3 changed files with 57 additions and 7 deletions

View file

@ -48,12 +48,40 @@ session_enabled=True
cookie_name = 'paramecio.session'
#More simple sessions. Save the session in a file in ./sessions directory.
"""
session_opts = {
'session.type': 'file',
'session.cookie_expires': False,
'session.data_dir': './sessions',
'session.auto': True
'session.auto': False, # Is better use s.save by performance
}
"""
# More fast methods for beaker sessions.
# Method for save info in cipher cookie. Don't use it if you want save many info in the session (cookies have 4k size limit normally). The default.
session_opts = {
'session.type': 'cookie',
'session.cookie_expires': False,
'session.data_dir': './sessions',
'session.auto': False, # Is better use s.save by performance
'session.validate_key': 'im smoking fool' #Key Generated by paramecio cmd using os.random, more secure if you want add or change random characters
}
# Method for save info in a memcached server.
"""
session_opts = {
'session.type': 'ext:memcached',
'session.auto': False, # Is better use session.save by performance
'session.url': '127.0.0.1:11211'
}
"""
cache_session_opts = {
@ -85,4 +113,4 @@ yes_static=True
#Database mysql config, if you want anything...
#WebModel.connections={'default': {'name': 'default', 'host': 'localhost', 'user': 'root', 'password': '', 'db': 'example', 'charset': 'utf8mb4', 'set_connection': False} }
#WebModel.connections={'default': {'name': 'default', 'host': 'localhost', 'user': 'root', 'password': '', 'db': 'example', 'charset': 'utf8mb4', 'set_connection': False} }