معرفی شرکت ها


django-mail-dbtpl-0.2.2


Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر

توضیحات

A simple Django app to store email template in database.
ویژگی مقدار
سیستم عامل -
نام فایل django-mail-dbtpl-0.2.2
نام django-mail-dbtpl
نسخه کتابخانه 0.2.2
نگهدارنده []
ایمیل نگهدارنده []
نویسنده CrazyMath
ایمیل نویسنده moiseenko.k.s@gmail.com
آدرس صفحه اصلی https://bitbucket.org/crazymath/django-mail-dbtpl
آدرس اینترنتی https://pypi.org/project/django-mail-dbtpl/
مجوز BSD License
================= django-mail-dbtpl ================= The application allows you to store email templates in the database. The application also allows you to edit templates in the database data using ``ckeditor``. More details about the settings available `ckeditor <https://pypi.python.org/pypi/django-ckeditor-updated>`_. Installing ========== Install the application using pip. :: > pip install django-mail-dbtpl Add application settings Django project :: INSTALLED_APPS = ( ... 'django_mail_dbtpl', ... ) Apply migration :: python ./manage.py migrate django_mail_dbtpl Usage ===== After installation, you must create a letter template in the database via the administration panel by url ``http://127.0.0.1:8000/admin/django_mail_dbtpl/emailtemplate/``, it is necessary for the template specify ``slug``. ``slug`` will be used for both identifier template. The templates can be determined context variables ``{{var}}``. For example, you create a template with ``slug = 'welcome.tpl'``, ``subject = 'Welcome, {{username}}'``, ``body = 'Welcome to the {{site}}.'``. The following is the code that shows how to use the template stored in the database :: from django_mail_dbtpl.utils import EmailWrapper context = { 'username': 'Example User', 'site': 'example.com' } msg = EmailWrapper('welcome.tpl', context) msg.from_email = 'from_email@example.com' msg.to = ['to_email@example.com'] msg.send()


نحوه نصب


نصب پکیج whl django-mail-dbtpl-0.2.2:

    pip install django-mail-dbtpl-0.2.2.whl


نصب پکیج tar.gz django-mail-dbtpl-0.2.2:

    pip install django-mail-dbtpl-0.2.2.tar.gz