Skip to main content

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

https://img.shields.io/pypi/v/django-etc.svg https://img.shields.io/pypi/dm/django-etc.svg https://img.shields.io/pypi/l/django-etc.svg https://img.shields.io/coveralls/idlesign/django-etc/master.svg https://img.shields.io/travis/idlesign/django-etc/master.svg https://landscape.io/github/idlesign/django-etc/master/landscape.svg?style=flat

Description

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

Utils:

  • etc.toolbox.get_site_url does its best to provide you with a site URL where request object is unavailable.

Models:

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

  • etc.toolbox.get_model_class_from_string allows getting model class from its string representation.

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

  • etc.toolbox.choices_list helps to define choices for models, that could be addressed later as dictionaries.

  • etc.toolbox.get_choices returns model field choices from a given choices list.

Forms:

  • etc.toolbox.set_form_widgets_attrs allows bulk apply HTML attributes to every field widget of a given form.

Template tags:

  • model_field:

    • model_field_verbose_name returns model field verbose name.

    • model_field_help_text returns model field help text.

  • 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/

Release files for django-etc 0.7.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-etc 0.7.2
File Size Uploaded
django-etc-0.7.2.tar.gz 16.6 kB Details

Release files / django-etc-0.7.2.tar.gz

Download URL django-etc-0.7.2.tar.gz
Size 16.6 kB
Tags Source
SHA-256 checksum
How to use checksums
9d734135c3790003a0d5e0669e5a48e476a66a6461827f1fc85ac28cb3e501f2
BLAKE2b-256 checksum
How to use checksums
8db49e0993d299e47b07dd752d73b00a11b036ad417acf09c5c0cc3ca6b58fd4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

1.4.0

2 release files

1.3.1

2 release files

1.3.0

2 release files

1.2.0

2 release files

1.1.0

2 release files

1.0.0

2 release files

0.10.0

2 release files

0.9.2

2 release files

0.9.1

2 release files

0.9.0

1 release file

0.8.0

1 release file

This release

0.7.2 This release

1 release file

0.7.1

1 release file

0.7.0

1 release file

0.6.1

1 release file

0.6.0

1 release file

0.5.0

1 release file

0.4.0

1 release file

0.3.0

1 release file

0.2.0

1 release file

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page