django-etc
==========
https://github.com/idlesign/django-etc
.. image:: https://img.shields.io/pypi/v/django-etc.svg
:target: https://pypi.python.org/pypi/django-etc
.. image:: https://img.shields.io/pypi/l/django-etc.svg
:target: https://pypi.python.org/pypi/django-etc
.. image:: https://img.shields.io/coveralls/idlesign/django-etc/master.svg
:target: https://coveralls.io/r/idlesign/django-etc
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 whether request object is available or not.
* **etc.toolbox.import_app_module** imports and returns a module from a specific app by its name.
* **etc.toolbox.import_project_modules** imports modules from registered apps using given module name and returns them as a list.
Models
~~~~~~
* **etc.toolbox.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.ChoicesEnumMixin** helps to define choices for models using ``Enum`` from Python 3.
* **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.
Admin
~~~~~
* **etc.admin.CustomModelPage** allows easy construction of custom admin pages processing user input.
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.
* ``etc_misc``
* **site_url** does its best to provide you with a site URL whether request object is available or not.
* **include_** allows a template name to include template variables. Allows fallback template if the target is not found.
Documentation
-------------
http://django-etc.readthedocs.org/
Raw data
{
"_id": null,
"home_page": "https://github.com/idlesign/django-etc",
"name": "django-etc",
"maintainer": null,
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": null,
"author": "Igor `idle sign` Starikov",
"author_email": "idlesign@yandex.ru",
"download_url": "https://files.pythonhosted.org/packages/7d/3b/c164f4edd0aa3f5026e15aaa982771c506c2d473bbee97bbf1b7e90aefc0/django-etc-1.4.0.tar.gz",
"platform": null,
"description": "django-etc\n==========\nhttps://github.com/idlesign/django-etc\n\n.. image:: https://img.shields.io/pypi/v/django-etc.svg\n :target: https://pypi.python.org/pypi/django-etc\n\n.. image:: https://img.shields.io/pypi/l/django-etc.svg\n :target: https://pypi.python.org/pypi/django-etc\n\n.. image:: https://img.shields.io/coveralls/idlesign/django-etc/master.svg\n :target: https://coveralls.io/r/idlesign/django-etc\n\n\nDescription\n-----------\n\n*Tiny stuff for Django that won't fit into separate apps.*\n\n\nUtils\n~~~~~\n\n* **etc.toolbox.get_site_url** does its best to provide you with a site URL whether request object is available or not.\n\n* **etc.toolbox.import_app_module** imports and returns a module from a specific app by its name.\n\n* **etc.toolbox.import_project_modules** imports modules from registered apps using given module name and returns them as a list.\n\n\nModels\n~~~~~~\n\n* **etc.toolbox.InheritedModel** allows to override fields attributes in inherited models.\n\n* **etc.toolbox.get_model_class_from_string** allows getting model class from its string representation.\n\n* **etc.toolbox.get_model_class_from_settings** allows getting model class from its string representation in settings module.\n\n* **etc.toolbox.ChoicesEnumMixin** helps to define choices for models using ``Enum`` from Python 3.\n\n* **etc.toolbox.choices_list** helps to define choices for models, that could be addressed later as dictionaries.\n\n* **etc.toolbox.get_choices** returns model field choices from a given choices list.\n\n\nAdmin\n~~~~~\n\n* **etc.admin.CustomModelPage** allows easy construction of custom admin pages processing user input.\n\n\nForms\n~~~~~\n\n* **etc.toolbox.set_form_widgets_attrs** allows bulk apply HTML attributes to every field widget of a given form.\n\n\nTemplate tags\n~~~~~~~~~~~~~\n\n* ``model_field``:\n\n * **model_field_verbose_name** returns model field verbose name.\n\n * **model_field_help_text** returns model field help text.\n\n* ``model_meta``:\n\n * **model_meta_verbose_name** returns model verbose name singular.\n\n * **model_meta_verbose_name_plural** returns model verbose name plural.\n\n* ``gravatar``\n\n * **gravatar_get_url** returns Gravatar image URL for a given string or UserModel.\n\n * **gravatar_get_img** returns Gravatar image HTML tag for a given string or UserModel.\n\n* ``etc_misc``\n\n * **site_url** does its best to provide you with a site URL whether request object is available or not.\n\n * **include_** allows a template name to include template variables. Allows fallback template if the target is not found.\n\n\n\nDocumentation\n-------------\n\nhttp://django-etc.readthedocs.org/\n",
"bugtrack_url": null,
"license": "BSD 3-Clause License",
"summary": "Tiny stuff for Django that won't fit into separate apps.",
"version": "1.4.0",
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "91addbfcd9aeace88a9b34b88aac5ad17418bb982343c0c72cb95491527af910",
"md5": "11167959b373927da0335c485016fb5d",
"sha256": "61aee75a97ef868830260de86f2a69896992776c325624c46827c831101cbd9f"
},
"downloads": -1,
"filename": "django_etc-1.4.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "11167959b373927da0335c485016fb5d",
"packagetype": "bdist_wheel",
"python_version": "3.8",
"requires_python": null,
"size": 21363,
"upload_time": "2022-10-06T13:14:52",
"upload_time_iso_8601": "2022-10-06T13:14:52.251968Z",
"url": "https://files.pythonhosted.org/packages/91/ad/dbfcd9aeace88a9b34b88aac5ad17418bb982343c0c72cb95491527af910/django_etc-1.4.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "7d3bc164f4edd0aa3f5026e15aaa982771c506c2d473bbee97bbf1b7e90aefc0",
"md5": "7326ecff306fd1020691f00d5f892b3a",
"sha256": "fa7dbcdba5d0dd3b42eac54463fe24a9e1202a1492ecbf50ed0bc1555074af8f"
},
"downloads": -1,
"filename": "django-etc-1.4.0.tar.gz",
"has_sig": false,
"md5_digest": "7326ecff306fd1020691f00d5f892b3a",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 26070,
"upload_time": "2022-10-06T13:14:48",
"upload_time_iso_8601": "2022-10-06T13:14:48.553580Z",
"url": "https://files.pythonhosted.org/packages/7d/3b/c164f4edd0aa3f5026e15aaa982771c506c2d473bbee97bbf1b7e90aefc0/django-etc-1.4.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2022-10-06 13:14:48",
"github": true,
"gitlab": false,
"bitbucket": false,
"github_user": "idlesign",
"github_project": "django-etc",
"travis_ci": false,
"coveralls": true,
"github_actions": true,
"tox": true,
"lcname": "django-etc"
}