Skip to main content

A local mail viewer for Django development.

Project description

django-local-mail-viewer

Ruff Run Test codecov

django-local-mail-vieweris a Django app that provides a simple email viewer for emails during development. It is used together with the email backend django.core.mail.backends.filebased.EmailBackend. You can browse the emails from through a web interface and view the content of those emails as well as possible attachments.

Documentation

Install via pipy running pip install django-local-mail-viewer and add django_local_mail_viewer to your INSTALLED_APPS of your development settings file or add this for more flexibility:

if DEBUG:
    INSTALLED_APPS += ['django_local_mail_viewer']

Add path('mail/', include('local_mail_viewer.urls')) to your urls.py. This can also be done conditionally:

if settings.DEBUG:
    urlpatterns += path('mail/', include('local_mail_viewer.urls'))

Set your email config as follows:

EMAIL_BACKEND = 'django.core.mail.backends.filebased.EmailBackend'
DEFAULT_FROM_EMAIL = 'some_name@some_domain.tld'
EMAIL_FILE_PATH = BASE_DIR / 'sent_emails'

You can choose the EMAIL_FILE_PATH to any name, it will be detected automatically.

Don't use the local mail viewer in production!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django_local_mail_viewer-0.0.1.tar.gz (9.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_local_mail_viewer-0.0.1-py3-none-any.whl (11.6 kB view details)

Uploaded Python 3

File details

Details for the file django_local_mail_viewer-0.0.1.tar.gz.

File metadata

  • Download URL: django_local_mail_viewer-0.0.1.tar.gz
  • Upload date:
  • Size: 9.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for django_local_mail_viewer-0.0.1.tar.gz
Algorithm Hash digest
SHA256 8595a296abf14c1658f6e9c787e43493d0e797073f2e6ca483820bba661bf6c3
MD5 aa91d9d8d172f7007c40ef9b268c6aa8
BLAKE2b-256 12efd68af5db0c3278474973071a70dedc4800f4fd5e0cfbffb2723dcb51c30b

See more details on using hashes here.

Provenance

The following attestation bundles were made for django_local_mail_viewer-0.0.1.tar.gz:

Publisher: python-publish.yml on christianwgd/django-local-mail-viewer

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file django_local_mail_viewer-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for django_local_mail_viewer-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 55b6df0f2557dcb123bbdca84bfe3e188a85892b80d3dd88aa43f358d751f124
MD5 7e92b2e6efb61d2a10c22ffbb0848aaf
BLAKE2b-256 e1993381bce3020e5695a4968e1818150c4ca8c394fe821caa26371c218d2227

See more details on using hashes here.

Provenance

The following attestation bundles were made for django_local_mail_viewer-0.0.1-py3-none-any.whl:

Publisher: python-publish.yml on christianwgd/django-local-mail-viewer

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page