Source: https://github.com/gregschmit/django-impression-client
PyPI: https://pypi.org/project/django-impression-client/
Impression Client is a reusable Django app that provides helpers for interacting with remote systems running Impression.
$ pip install django-impression-client
Add django-impression-client
to your requirements file to ensure it's installed in
the environment. Configure your settings.py
:
EMAIL_BACKEND = "impression_client.backends.RemoteEmailBackend"
IMPRESSION_DEFAULT_TARGET = "https://impression.example.org/api/send_message/"
IMPRESSION_DEFAULT_TOKEN = "my_api_auth_token_here"
If you want to store your credentials in the database rather than statically in your
project settings.py
file, include impression_client
in your INSTALLED_APPS
,
then run database migrations. Finally, remove the IMPRESSION_DEFAULT_TARGET
and
IMPRESSION_DEFAULT_TOKEN
from your project settings.py
, and go into the Django
admin UI to add impression servers.
$ python manage.py test