Skip to main content
Archived

This project has been archived by its maintainers, and is no longer receiving any updates.

=================
Django Mailformer
=================

Application setup
=================
Assuming you have added this application in your projects requirements.txt, you
can start using it by following these steps:

First start with installing:

.. code:: console

pip install git+ssh://git@github.com/developersociety/django-mailformer.git@master#egg=django-mailformer


1) Add `mailformer` to your applications in the settings file.
2) In your urls.py add to your url patterns:

.. code:: console

urlpatterns = [
# all the other values
url(r'^email/', include('mailformer.urls')),
]

The actual url these are added to is up to you. Do not define a namespace in
the include as this will prevent the internals of finding the URLs used for
the form and submission success page. It is however possible to manipulate
this if so required, however you will need to directly add the form and
submission page and override the constants.URL_NAME values.

3) In your template add `{% load mailformer %}`
4) Wherever you would display the email replace it with:

.. code:: console

<a href="{% get_url_by_email email_address %}">
contact form
</a>


Where `email_address` is the email_address you want to mail to.
You can also add other keys so that the form get prefilled values.

These keys are: [name, phone_number, subject, message]

The field `identifier` is hidden but required.

5) You should define your own forms by creating a submit form named
`mailformer/mailformer-form.html` and a success form named
`mailformer/mailformer-success.html`.


Development setup
=================

It's recommended you use `virtualenvwrapper <https://virtualenvwrapper.readthedocs.io/en/latest/>`_
and `The Developer Society Dev Tools <https://github.com/developersociety/tools>`_.

Presuming you are using those tools, getting started on this project is pretty straightforward:

.. code:: console

$ dev-clone example_instance
$ make reset

You can now run the development server:

.. code:: console

$ python manage.py runserver


=======
History
=======

0.0.0 (2017-06-14)
------------------

* Initial commit


0.0.0b (2017-06-22)
-------------------

* Refactor to new layout

Metadata

Release files for django-mailformer 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-mailformer 0.0.1
File Size Uploaded
django-mailformer-0.0.1.tar.gz 9.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for django-mailformer 0.0.1
File Interpreter ABI Platform
django_mailformer-0.0.1-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 26.3 kB

Release files / django-mailformer-0.0.1.tar.gz

Download URL django-mailformer-0.0.1.tar.gz
Size 9.4 kB
Tags Source
SHA-256 checksum
How to use checksums
986957b57ef71a9ae21d09f70be9d149e283123a14fcbabd5c1b2076acb7f3fb
BLAKE2b-256 checksum
How to use checksums
2b95ef7aa035d4664b6c0e24f290f7670a1a6b608c3d3b2436b6f734b83e0ee5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / django_mailformer-0.0.1-py2.py3-none-any.whl

Download URL django_mailformer-0.0.1-py2.py3-none-any.whl
Size 16.9 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
2cf321e6e39777747bd1f7b8e2cc85dfe9c083c2775f5568bce2002a76a1a770
BLAKE2b-256 checksum
How to use checksums
9e2d6e41cf2eb4041272000346bd57d95b28467eab95453f426fe739375f7a4f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page