{ "info": { "author": "CrazyMath", "author_email": "moiseenko.k.s@gmail.com", "bugtrack_url": null, "classifiers": [ "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2.7", "Topic :: Internet :: WWW/HTTP", "Topic :: Internet :: WWW/HTTP :: Dynamic Content" ], "description": "=================\ndjango-mail-dbtpl\n=================\n\nThe application allows you to store email templates in the database. The application also allows you to edit templates\nin the database data using ``ckeditor``. More details about the settings available `ckeditor `_.\n\nInstalling\n==========\nInstall the application using pip.\n::\n\n > pip install django-mail-dbtpl\n\nAdd application settings Django project\n::\n\n INSTALLED_APPS = (\n ...\n 'django_mail_dbtpl',\n ...\n )\n\nApply migration\n::\n\n python ./manage.py migrate django_mail_dbtpl\n\n\nUsage\n=====\nAfter installation, you must create a letter template in the database via the administration panel by url\n``http://127.0.0.1:8000/admin/django_mail_dbtpl/emailtemplate/``, it is necessary for the template specify ``slug``.\n``slug`` will be used for both identifier template. The templates can be determined context variables ``{{var}}``.\nFor example, you create a template with ``slug = 'welcome.tpl'``, ``subject = 'Welcome, {{username}}'``,\n``body = 'Welcome to the {{site}}.'``. The following is the code that shows how to use the template stored in the database\n::\n\n from django_mail_dbtpl.utils import EmailWrapper\n context = {\n 'username': 'Example User',\n 'site': 'example.com'\n }\n msg = EmailWrapper('welcome.tpl', context)\n msg.from_email = 'from_email@example.com'\n msg.to = ['to_email@example.com']\n msg.send()", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://bitbucket.org/crazymath/django-mail-dbtpl", "keywords": null, "license": "BSD License", "maintainer": null, "maintainer_email": null, "name": "django-mail-dbtpl", "package_url": "https://pypi.org/project/django-mail-dbtpl/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django-mail-dbtpl/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://bitbucket.org/crazymath/django-mail-dbtpl" }, "release_url": "https://pypi.org/project/django-mail-dbtpl/0.2.2/", "requires_dist": null, "requires_python": null, "summary": "A simple Django app to store email template in database.", "version": "0.2.2" }, "last_serial": 1125407, "releases": { "0.2": [ { "comment_text": "", "digests": { "md5": "562372619ab6289c47ff4be0307a6bb2", "sha256": "5bf5091134a8cbdf9c19b1032332778e750f18f2d6081217a400bc7582c4a658" }, "downloads": -1, "filename": "django-mail-dbtpl-0.2.tar.gz", "has_sig": false, "md5_digest": "562372619ab6289c47ff4be0307a6bb2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2986, "upload_time": "2014-06-15T11:29:39", "url": "https://files.pythonhosted.org/packages/f1/d6/e6f2ab2ba9733c5ec50829837781730c78eefb848d5177fa008883a3d922/django-mail-dbtpl-0.2.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "63ccefbdd6448230df650ea362b1cbf9", "sha256": "82a6daa30f19e6634f20c9d215950bb8a45bc41202000c77103b7c0b9fcc764f" }, "downloads": -1, "filename": "django-mail-dbtpl-0.2.1.tar.gz", "has_sig": false, "md5_digest": "63ccefbdd6448230df650ea362b1cbf9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3012, "upload_time": "2014-06-15T11:40:09", "url": "https://files.pythonhosted.org/packages/dd/88/5cd67685fb1bebab226e1597c48bd912b31ccf44d3751b6bef80280fe889/django-mail-dbtpl-0.2.1.tar.gz" } ], "0.2.2": [ { "comment_text": "", "digests": { "md5": "6ba55b4fb63a103aaee6b174fd7dc0c9", "sha256": "f314492832ca8e2be5af6f071bb3bddf4bbd51758a5d6d413f359d8e4471fbf4" }, "downloads": -1, "filename": "django-mail-dbtpl-0.2.2.tar.gz", "has_sig": false, "md5_digest": "6ba55b4fb63a103aaee6b174fd7dc0c9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3015, "upload_time": "2014-06-15T12:00:14", "url": "https://files.pythonhosted.org/packages/31/e7/f43161d009c6ed840ba680a538196aafd678ec9dba6140d16180cafc98fe/django-mail-dbtpl-0.2.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "6ba55b4fb63a103aaee6b174fd7dc0c9", "sha256": "f314492832ca8e2be5af6f071bb3bddf4bbd51758a5d6d413f359d8e4471fbf4" }, "downloads": -1, "filename": "django-mail-dbtpl-0.2.2.tar.gz", "has_sig": false, "md5_digest": "6ba55b4fb63a103aaee6b174fd7dc0c9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3015, "upload_time": "2014-06-15T12:00:14", "url": "https://files.pythonhosted.org/packages/31/e7/f43161d009c6ed840ba680a538196aafd678ec9dba6140d16180cafc98fe/django-mail-dbtpl-0.2.2.tar.gz" } ] }