No project description provided
Project description
djangondor
Table of Contents
Installation
pip install djangondor
Functions
dict_values
dict_values can be used to access data in a dict as a tuple
from djangondor.collections import dict_values
data = {'name':'Joseph','age':30,'height':1.7}
name, height = dict_values(data,'name','height')
value_list
Complements the builtin
Queryset.values_list
returning one data item per entry in the list. However, it only allows you to retrieve one field per item in the queryset.
from djangondor.collections import value_list
queryset = User.objects.all()
# data would have => ['sam', 'musonda', 'waza', 'chilu']
data = value_list(queryset, 'first_name')
Templatetags
Path tags
{% load djangondor_path_tags%}
<a href="{% url 'index:index' %}" class="{% active_app 'index'%}">Index App</a>
<a href="{% url 'index:home' %}" class="{% active_path 'home'%}">Home</a>
<a href="{% url 'index:about' %}" class="{% active_path 'about'%}">About</a>
<a href="{% url 'index:settings' %}" class="{% active_path_in 'home_settings' 'profile_settings' %}">Settings</a>
License
djangondor
is distributed under the terms of the MIT license.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
djangondor-0.0.3.tar.gz
(6.6 kB
view hashes)
Built Distribution
Close
Hashes for djangondor-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 026431627460a6530fb9845cc1e96e33c59a5664043973d235e63c429987fbe8 |
|
MD5 | b61e4c574384c2cbd5a9d9ab2370465c |
|
BLAKE2b-256 | b4c742158354cd6ef2971b3d1c2da480f3c6c9a33abf9a52ef35d43186f302d8 |