{ "info": { "author": "Eliot Berriot", "author_email": "contact@eliotberriot.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Framework :: Django", "Framework :: Django :: 1.8", "Framework :: Django :: 1.9", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Natural Language :: English", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4" ], "description": "=============================\ndjango-dbes\n=============================\n\n.. image:: https://badge.fury.io/py/django-dbes.png\n :target: https://badge.fury.io/py/django-dbes\n\n.. image:: https://travis-ci.org/EliotBerriot/django-dbes.png?branch=master\n :target: https://travis-ci.org/EliotBerriot/django-dbes\n\nA django package to speed-up your HTML email developpement workflow in django.\n\n**Warning**: this package is intended for developpement only.\n\nUse case\n--------\n\nWorking on email templates/styling in django can be really painful and slow:\n\n* Dumping the email content to console via django's `ConsoleBackend` is just not enough when you work with HTML emails\n* Sending the emails to a real adress is slow, requires a working SMTP server, and may be dangerous. It will also quickly spam your inbox.\n\nA possible answer\n-----------------\n\nWhat if we could display sent emails directly in browser during developpement ? It's actually quite simple, and it's exactly\nwhat django-dbes does:\n\n1. Instead of sending mails or logging them to console, it's stored as a model instances in database\n2. The email URL is logged on the console so it can be accessed it in a web browser\n3. The view behind this URL retrieve the Email instance in database and render the content in a template\n\nThe project is also bundled with an admin module so you can quickly see what are the last sent emails and display them.\n\nQuickstart\n----------\n\nInstall django-dbes::\n\n pip install django-dbes\n\nThen add the app to your settings.py::\n\n INSTALLED_APPS = [\n # other apps\n 'dbes',\n ]\n\n EMAIL_BACKEND = 'dbes.backends.EmailBackend'\n\nAdd this to your URLs conf::\n\n urlpatterns = [\n # your urls\n url(r'^emails/', include('dbes.urls', namespace='dbes')),\n ]\n\nRun the migrations::\n\n python manage.py migrate dbes\n\nFrom now on, each time you send an email, it will be saved as a model instead of being sent. You'll also see\na log output in your console, such as:\n\n Sending email to contact@test.com with subject \"Test\". You can access this email at URL http://127.0.0.1:8000/emails/8b2b0bf2-bfb3-4771-a14c-f6d4dc9a635b\n\nJust click the email link to display it.\n\n\nRunning Tests\n--------------\n\nDoes the code actually work?\n\n::\n\n source /bin/activate\n (myenv) $ pip install -r requirements-test.txt\n (myenv) $ python runtests.py\n\nCredits\n---------\n\nTools used in rendering this package:\n\n* Cookiecutter_\n* `cookiecutter-pypackage`_\n\n.. _Cookiecutter: https://github.com/audreyr/cookiecutter\n.. _`cookiecutter-djangopackage`: https://github.com/pydanny/cookiecutter-djangopackage\n\n\n\n\nHistory\n-------\n\n0.1.0 (2016-04-20)\n++++++++++++++++++\n\n* First release on PyPI.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/EliotBerriot/django-dbes", "keywords": "django-dbes", "license": "BSD", "maintainer": null, "maintainer_email": null, "name": "django-dbes", "package_url": "https://pypi.org/project/django-dbes/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django-dbes/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/EliotBerriot/django-dbes" }, "release_url": "https://pypi.org/project/django-dbes/0.1.0/", "requires_dist": null, "requires_python": null, "summary": "A django package to speed-up your HTML email developpement workflow in django", "version": "0.1.0" }, "last_serial": 2074044, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "9a7c6457adfc93b8f054d17f34f0ba12", "sha256": "83838729ae40191b9ab0d6bf16e39ae4bd2be248f29695d2d9d8dcba0f01b390" }, "downloads": -1, "filename": "django-dbes-0.1.0.tar.gz", "has_sig": false, "md5_digest": "9a7c6457adfc93b8f054d17f34f0ba12", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7687, "upload_time": "2016-04-20T13:00:03", "url": "https://files.pythonhosted.org/packages/6a/93/d3ee5bc87c04084eee0ddb6b66f42d54b79352a6f446a5aa88c52628dcb4/django-dbes-0.1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "9a7c6457adfc93b8f054d17f34f0ba12", "sha256": "83838729ae40191b9ab0d6bf16e39ae4bd2be248f29695d2d9d8dcba0f01b390" }, "downloads": -1, "filename": "django-dbes-0.1.0.tar.gz", "has_sig": false, "md5_digest": "9a7c6457adfc93b8f054d17f34f0ba12", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7687, "upload_time": "2016-04-20T13:00:03", "url": "https://files.pythonhosted.org/packages/6a/93/d3ee5bc87c04084eee0ddb6b66f42d54b79352a6f446a5aa88c52628dcb4/django-dbes-0.1.0.tar.gz" } ] }