This repository has been archived by the owner on Aug 20, 2023. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
Django integration | ||
------------------ | ||
|
||
Introduction | ||
============ | ||
|
||
``mailjet.contrib.django_mailjet`` provides generic tools to plug basic | ||
mailjet support in your project. | ||
|
||
Advanced users may use | ||
``mailjet.contrib.django_mailjet.forms.SubscriptionForm`` directly | ||
without installing anything. | ||
|
||
Installation | ||
============ | ||
|
||
In ``settings.py``: | ||
|
||
- set ``MAILJET_LIST_NAME`` and ``MAILJET_LIST_LABEL``, note that it | ||
may not contain non-alphanumeric characters, those are used as | ||
defaults for | ||
``mailjet.contrib.django_mailjet.forms.SubscriptionForm``, | ||
- add to ``INSTALLED_APPS``: ``mailjet.contrib.django_mailjet`` for | ||
templates to be loadable. | ||
|
||
Include ``mailjet.contrib.django_mailjet.urls`` in ``urls.py``, ie.: | ||
|
||
.. code:: py | ||
url(r'^newsletter/', include('mailjet.contrib.django_mailjet.urls')), | ||
Users may now subscribe to your mailing list on ``/newsletter/``. |