diff --git a/settings/__init__.py b/settings/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/settings/config.py.sample b/settings/config.py.sample new file mode 100644 index 0000000..4ed48b8 --- /dev/null +++ b/settings/config.py.sample @@ -0,0 +1,88 @@ +#!/usr/bin/python3 + +# You need install cromosoma for use this. + +#from cromosoma.webmodel import WebModel + +#server_used="wsgiref" + +#Host/IP where bind the server + +port=8080 + +debug=True + +reloader=True + +admin_folder='admin' + +host='localhost' + +allowed_ips=[] + +#The theme by default + +theme='default' + +#Base directory for save modules + +base_modules="modules" + +#Type server used for connect to the internet... + +server_used="wsgiref" + +#Module showed in index + +default_module="welcome" + +#Modules with permissions to access for users + +modules=['welcome'] + +#Activate sessions? + +session_enabled=True + +#Variables for beaker sessions + +cookie_name = 'paramecio.session' + +session_opts = { + 'session.type': 'file', + 'session.cookie_expires': False, + 'session.data_dir': './sessions', + 'session.auto': True +} + +cache_session_opts = { + +} + +#The base url + +base_url='/' + +#Can be absolute or relative + +media_url='/' + +#SSL support built in server. You need cherrypy installed for use this. + +ssl=False + +# Cert file for ssl + +cert_pem='' + +# Key file for ssl + +privkey_pem='' + +#WARNING: only use this feature in development, not in production. + +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} } \ No newline at end of file