django-local-mail-viewer
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 a web interface and view the content of those emails as well as any 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 += ['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!
Usage
Open http://localhost:8000/mail/ in your browser.
Metadata
Release files for django-local-mail-viewer 0.0.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| django_local_mail_viewer-0.0.6.tar.gz | 10.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| django_local_mail_viewer-0.0.6-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 22.4 kB
Release files / django_local_mail_viewer-0.0.6.tar.gz
| Download URL | django_local_mail_viewer-0.0.6.tar.gz |
|---|---|
| Size | 10.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b7ba6e44ced39d08f08deaf01d42ec8a3193a1a56d1aeed61f9778a60befd4f3
|
|
BLAKE2b-256 checksum How to use checksums |
e1f6d205a8faf5851b8a3afcc80d390efdfab0ff4587a7d30490ac332e782c34
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 19, 2026.
Transparency logRelease files / django_local_mail_viewer-0.0.6-py3-none-any.whl
| Download URL | django_local_mail_viewer-0.0.6-py3-none-any.whl |
|---|---|
| Size | 12.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
88f8b45f21c7c183e6e0d0735be14a2f2202133c2c340bac7d47cc43abc132a9
|
|
BLAKE2b-256 checksum How to use checksums |
910d25ab58ffb50d2f2058d39640ad78aad3486d6ce0bdde2c98cf822eba05c3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 19, 2026.
Transparency log