Skip to main content
Help us improve Python packaging – donate today!

Django helpful things

Project Description

# 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 ```

## 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" "templates/e-mail/css/style.css" %}
{% abs_puth "media" "templates/e-mail/css/style.css" %}
{% abs_puth "base" "templates/e-mail/css/style.css" %}
{% abs_puth "parent" "templates/e-mail/css/style.css" %}
```

# 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)
```

Release history Release notifications

This version
History Node

1.2.1

History Node

1.2.0

History Node

1.1.9

History Node

1.1.8

History Node

1.1.7

History Node

1.1.6

History Node

1.1.5

History Node

1.1.4

History Node

1.1.3

History Node

1.1.2

History Node

1.1.1

History Node

1.1.0

History Node

1.0.9

History Node

1.0.8

History Node

1.0.7

History Node

1.0.6

History Node

1.0.5

History Node

1.0.4

History Node

1.0.3

History Node

1.0.2

History Node

1.0.1

History Node

1.0.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
django-helpful-1.2.1.tar.gz (7.5 kB) Copy SHA256 hash SHA256 Source None Mar 17, 2017

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page