Skip to main content

Tiny stuff for Django that won't fit into separate apps.

Project description

https://github.com/idlesign/django-etc

https://badge.fury.io/py/django-etc.png https://pypip.in/d/django-etc/badge.png

Description

Tiny stuff for Django that won’t fit into separate apps.

Models:

  • etc.models.InheritedModel allows to override fields attributes in inherited models.

  • etc.toolbox.get_model_class_from_settings allows getting model class from its string representation in settings module.

Template tags:

  • model_meta:

    • model_meta_verbose_name returns model verbose name singular.

    • model_meta_verbose_name_plural returns model verbose name plural.

  • gravatar

    • gravatar_get_url returns Gravatar image URL for a given string or UserModel.

    • gravatar_get_img returns Gravatar image HTML tag for a given string or UserModel.

Documentation

http://django-etc.readthedocs.org/

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-etc-0.2.0.tar.gz (11.3 kB view hashes)

Uploaded Source

Supported by

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