From d8dd9f629ba825c9d4b1c3ad906553db2ad7e62a Mon Sep 17 00:00:00 2001 From: Holger Frey Date: Sat, 21 Oct 2017 11:48:59 +0200 Subject: [PATCH] added pyramid_mailer to requirements --- .gitignore | 3 +++ development.ini | 17 ++++++++++++++++- docs/installation.rst | 4 +++- setup.py | 1 + 4 files changed, 23 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 65077b1..264c8b7 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,9 @@ # ignore sqlite database ordr2.sqlite +# ignore deform templates, only copied to have them available +ordr2/templates/original_deform_templates/ + # Byte-compiled / optimized / DLL files __pycache__/ *.py[cod] diff --git a/development.ini b/development.ini index d11c9a5..4b599f1 100644 --- a/development.ini +++ b/development.ini @@ -12,18 +12,33 @@ pyramid.debug_notfound = false pyramid.debug_routematch = false pyramid.default_locale_name = en pyramid.includes = + pyramid_mailer.debug pyramid_debugtoolbar pyramid_jinja2 sqlalchemy.url = sqlite:///%(here)s/ordr2.sqlite passlib.config = %(here)s/passlib.ini +# automatic CSRF token validation on each POST resquest +session.auto_csrf = true + +# cache duration in seconds for static pages static_views.cache_max_age = 0 -# change these +# secrets for session and authentication +# CHANGE IN PRODUCTION! auth.secret = Change Me! session.secret = 4d72ee16df8cf1238048ade32e3ce4d51757af8ada4a962cfae5cea5c08421a0 +# time a user token is valid (in minutes) +token_expiry.change_email = 120 +token_expiry.reset_password = 120 +token_expiry.user_registration = 120 + +# email delivery +mail.host = localhost +mail.port = 2525 +mail.default_sender = ordr@example.com # By default, the toolbar only appears for clients from IP addresses # '127.0.0.1' and '::1'. diff --git a/docs/installation.rst b/docs/installation.rst index 1b98bd6..bd62343 100644 --- a/docs/installation.rst +++ b/docs/installation.rst @@ -69,10 +69,12 @@ pyramid pyramid_debugtoolbar debugging the web application in the browser - pyramid_jinja2 Jina2 templating engine for the pyramid web framework +pyramid_mailer + send emails, uses the transaction manager + pyramid_nacl_session Session object with encryption diff --git a/setup.py b/setup.py index 655c2ab..14f6d40 100644 --- a/setup.py +++ b/setup.py @@ -17,6 +17,7 @@ requirements = [ 'pyramid', 'pyramid_jinja2', 'pyramid_debugtoolbar', + 'pyramid_mailer', 'pyramid_nacl_session', 'pyramid_tm', 'SQLAlchemy',