All Projects → idlesign → django-etc

idlesign / django-etc

Licence: BSD-3-Clause License
Tiny stuff for Django that won't fit into separate apps.

Programming Languages

python
139335 projects - #7 most used programming language
HTML
75241 projects

Projects that are alternatives of or similar to django-etc

JavaInterview
JVM、JUC(高并发)、集合、计算机网络、数据库、MySql、Redis、、工作流(Activiti)、规则引擎(Drools)、Spring、SpringCloud、Mybatis、Git、Docker、Utils、Linux
Stars: ✭ 179 (+588.46%)
Mutual labels:  utils
tdesign-common
TDesign style/utils shared by multiple frameworks repo.
Stars: ✭ 70 (+169.23%)
Mutual labels:  utils
software-practice-thoughts
📚 🐣 软件实践文集。主题不限,思考讨论有趣有料就好,包含如 系统的模型分析/量化分析、开源漫游者指南、软件可靠性设计实践…… 🥤
Stars: ✭ 122 (+369.23%)
Mutual labels:  miscellaneous
ng2-gravatar
Angular2 gravatar directive
Stars: ✭ 21 (-19.23%)
Mutual labels:  gravatar
Log
Breaking android log word limits and automatically formatting json.
Stars: ✭ 14 (-46.15%)
Mutual labels:  utils
sagittarius
🎯 A set of javascript most used utils📑
Stars: ✭ 42 (+61.54%)
Mutual labels:  utils
hey-utils
js-utils
Stars: ✭ 23 (-11.54%)
Mutual labels:  utils
Gravatar
👤 Gravatar Helper & Generator (Laravel supported)
Stars: ✭ 19 (-26.92%)
Mutual labels:  gravatar
clearbit-go
Go bindings for Clearbit
Stars: ✭ 12 (-53.85%)
Mutual labels:  utils
silky-charts
A silky smooth D3/React library
Stars: ✭ 38 (+46.15%)
Mutual labels:  utils
onex-utils
Web business development general tool library 通用业务工具库 🥷
Stars: ✭ 23 (-11.54%)
Mutual labels:  utils
utils.js
👷 🔧 zero dependencies vanilla JavaScript utils.
Stars: ✭ 14 (-46.15%)
Mutual labels:  utils
purescript-ffi-utils
A utility library for the purescript foreign function interface
Stars: ✭ 22 (-15.38%)
Mutual labels:  utils
bat
Battery management utility for Linux laptops.
Stars: ✭ 107 (+311.54%)
Mutual labels:  utils
util-ts
Utils for mobile browsers, built with TypeScript
Stars: ✭ 23 (-11.54%)
Mutual labels:  utils
CommonUtils
A collection of useful Android classes
Stars: ✭ 37 (+42.31%)
Mutual labels:  utils
Assembly-Lib
A 16-bits x86 DOS Assembly library that provides many useful functions for developing programs. It has both VGA grapics functions as well as general purpose utilities. The main purpose of this library was to be able to implement simple DOS games (in Assembly) using VGA (320x200, 256 colors) display.
Stars: ✭ 36 (+38.46%)
Mutual labels:  utils
toxic-decorators
Library of Javascript decorators
Stars: ✭ 26 (+0%)
Mutual labels:  utils
core
🔥 Antares Core Implemenation. Most important project layer, this is the heart for your app. ACL, notifiter, console, geoip, areas, utils and many more...
Stars: ✭ 24 (-7.69%)
Mutual labels:  utils
dotty dict
Dictionary wrapper for quick access to deeply nested keys.
Stars: ✭ 67 (+157.69%)
Mutual labels:  utils

django-etc

https://github.com/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/

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].