Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

django-helpful

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

django-helpful

Django helpful things

  • 1.6.4
  • PyPI
  • Socket score

Maintainers
1

A handful of utilities for Django!

.. image:: https://img.shields.io/pypi/v/django-helpful.svg :target: https://pypi.python.org/pypi/django-helpful :alt: Latest PyPI version .. image:: https://img.shields.io/pypi/dm/django-helpful.svg :target: https://pypi.python.org/pypi/django-helpful :alt: Number of PyPI downloads .. image:: https://img.shields.io/pypi/l/django-helpful.svg :target: https://pypi.python.org/pypi/django-helpful


Install


  • Copy to helpful or include as git submodule
  • Add 'helpful', to INSTALLED_APPS

.. code-block:: python

HELPFUL_EMAIL_MODE = 'PROD' | 'DEBUG' | 'BLANK'
HELPFUL_EMAIL_DEBUG_INFO = True | False
HELPFUL_EMAIL_DEBUG_TO_EMAIL = ['debug@email.com']

Template Tags

image2base64 ^^^^^^^^^^^^ convert image to base64

.. code-block:: html

{% image2base64 "image.png" %}

object_dict ^^^^^^^^^^^ .. code-block:: html

{% load object_dict %}
{% for field in message|object_dict %}
    {{ field.verbose_name }}
    {{ field.display }}
{% endfor %}

abs_puth ^^^^^^^^ .. code-block:: html

{% load abs_puth %}
{% abs_puth "static" "django/img/logo.png" %}
{% abs_puth "media" "uploads/photos/joue.jpg" %}
{% abs_puth "base" "templates/e-mail/css/style.css" %}
{% abs_puth "parent" "extra/logo.png" %}

easy_email

template must be 'email/contacts' files 'email/contacts.html' and 'email/contacts.txt' must will exist

.. code-block:: python

from helpful.easy_email import mail
mail(subject, context, template, from_email, to_email, connection=None, reply_to=None, attach_files=[], cc=None, bcc=None)

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc