Skip to main content

Django helpful things

Project description

A handful of utilities for Django!

Latest PyPI version Number of PyPI downloads https://img.shields.io/pypi/l/django-helpful.svg

Install

  • Copy to helpful or include as git submodule

  • Add `'helpful',` to `INSTALLED_APPS `

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

{% image2base64 "image.png" %}
object_dict
{% load object_dict %}
{% for field in message|object_dict %}
    {{ field.verbose_name }}
    {{ field.display }}
{% endfor %}
abs_puth
{% 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

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)

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

django-helpful-1.6.4.tar.gz (7.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_helpful-1.6.4-py3-none-any.whl (11.4 kB view details)

Uploaded Python 3

File details

Details for the file django-helpful-1.6.4.tar.gz.

File metadata

  • Download URL: django-helpful-1.6.4.tar.gz
  • Upload date:
  • Size: 7.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.12

File hashes

Hashes for django-helpful-1.6.4.tar.gz
Algorithm Hash digest
SHA256 200241d61a099b0de852f54aa1b7912d7e3aba4216cc401b3a566a7c939c9219
MD5 dafaa6ab75c463a34c72dce1bb49b415
BLAKE2b-256 6e6f646ce964d92d91991dababf525ddd5a0d1366d96dfdf9d918c75b04ede8b

See more details on using hashes here.

File details

Details for the file django_helpful-1.6.4-py3-none-any.whl.

File metadata

  • Download URL: django_helpful-1.6.4-py3-none-any.whl
  • Upload date:
  • Size: 11.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.12

File hashes

Hashes for django_helpful-1.6.4-py3-none-any.whl
Algorithm Hash digest
SHA256 a8b514754f2c41cc9e9ccba9318b5c1b09fbed35f3eacffaf86f510265a54876
MD5 8450f65d4ec67bc94df60e793423709c
BLAKE2b-256 87165150f1e0857927f7674e8de70235b3cf9b3029aaa881997815b6e34b6e93

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page