Present users with your Terms of Service and other documents, and record their consent
Project description
Present users with your Terms of Service and other documents, and record their consent
Documentation
The full documentation is at https://django-signoff.readthedocs.io.
Quickstart
Install django-signoff:
pip install django-signoff
Add it to your INSTALLED_APPS:
INSTALLED_APPS = (
...
'django_signoff.apps.DjangoSignoffConfig',
...
)
Add django-signoff’s URL patterns:
from django_signoff import urls as django_signoff_urls
urlpatterns = [
...
url(r'^', include(django_signoff_urls)),
...
]
If you want users to be automatically prompted to sign any documents that you add before they can use your site, add django-consent’s middleware:
MIDDLEWARE = (
...
'django-consent.middleware.ConsentMiddleware',
...
)
You can add some settings to your settings.py file to configure django-consent:
# Send a notification to the user by email (using django-mailer) when they
# sign a document, including the text of the document. Default is False.
CONSENT_EMAIL_USER = True
# Send a notification to a defined list of addresses whenever any user
# signs a document (may be useful for recordkeeping). Default is none.
CONSENT_EMAIL_RECEIPT = ['legal@example.com', ]
Features
TODO
Running Tests
Does the code actually work?
source <YOURVIRTUALENV>/bin/activate (myenv) $ pip install tox (myenv) $ tox
Credits
Tools used in rendering this package:
History
0.0.1 (2018-06-03)
Initial release, demonstration of models and core logic
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for django_signoff-0.1.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 27e701fe4fbd4f79c435f30107878ff1ab1411d47e75109dba0451350af5376c |
|
MD5 | fc101b9f1d11f64cb61404dd29ac68ce |
|
BLAKE2b-256 | 5d523c86d1537d7199c7afe156a83eef67fef7b96bd413e4ebdb3f8ccb97b157 |