A local mail viewer for Django development.
Project description
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 += ['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!
Usage
Open http://localhost:8000/mail/ in your browser.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file django_local_mail_viewer-0.0.2.tar.gz.
File metadata
- Download URL: django_local_mail_viewer-0.0.2.tar.gz
- Upload date:
- Size: 9.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2ce269651da3c6be4b5c3f80397af12af99f980cc8210644feb464e48f2bdbc8
|
|
| MD5 |
95be098cb2ffc012976921dc09f42196
|
|
| BLAKE2b-256 |
d387d791ca69c39c2cfd77fe2e86d303fbbdbcfdc6a95cd4d4f06a485aa62d10
|
Provenance
The following attestation bundles were made for django_local_mail_viewer-0.0.2.tar.gz:
Publisher:
python-publish.yml on christianwgd/django-local-mail-viewer
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
django_local_mail_viewer-0.0.2.tar.gz -
Subject digest:
2ce269651da3c6be4b5c3f80397af12af99f980cc8210644feb464e48f2bdbc8 - Sigstore transparency entry: 1394003485
- Sigstore integration time:
-
Permalink:
christianwgd/django-local-mail-viewer@e28c165c29c4f158f74cb184cd7acc9c248d4193 -
Branch / Tag:
refs/tags/0.0.2 - Owner: https://github.com/christianwgd
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@e28c165c29c4f158f74cb184cd7acc9c248d4193 -
Trigger Event:
push
-
Statement type:
File details
Details for the file django_local_mail_viewer-0.0.2-py3-none-any.whl.
File metadata
- Download URL: django_local_mail_viewer-0.0.2-py3-none-any.whl
- Upload date:
- Size: 11.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
77d41ccb112cd93d17541abc582d550dcfe80796d363586caffd290a8bb2e6d7
|
|
| MD5 |
2ea5eb8e9c7564158d23993e26064485
|
|
| BLAKE2b-256 |
f6ebb588379bd9b6d83251d0c92abd7f059f24d839b3b2552c98c212c86e7a9f
|
Provenance
The following attestation bundles were made for django_local_mail_viewer-0.0.2-py3-none-any.whl:
Publisher:
python-publish.yml on christianwgd/django-local-mail-viewer
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
django_local_mail_viewer-0.0.2-py3-none-any.whl -
Subject digest:
77d41ccb112cd93d17541abc582d550dcfe80796d363586caffd290a8bb2e6d7 - Sigstore transparency entry: 1394003498
- Sigstore integration time:
-
Permalink:
christianwgd/django-local-mail-viewer@e28c165c29c4f158f74cb184cd7acc9c248d4193 -
Branch / Tag:
refs/tags/0.0.2 - Owner: https://github.com/christianwgd
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@e28c165c29c4f158f74cb184cd7acc9c248d4193 -
Trigger Event:
push
-
Statement type: