This is a django application that tries to eliminate annoying things in the Django framework.
Project description
Features:
render_to decorator - Reduce typing in django views.
signals decorator - Allow using signals as decorators.
ajax_request decorator - Returns JsonResponse with dict as content.
autostrip decorator - Strip form text fields before validation.
get_object_or_None function - Similar to get_object_or_404, but returns None if the object is not found.
get_config function - Get settings from django.conf if exists, return a default value otherwise.
AutoOneToOne field - Creates related object on first call if it doesn’t exist yet.
HttpResponseReload - Reload and stay on same page from where request was made.
StaticServer middleware - Instead of configuring urls.py, just add this middleware and it will serve you static files.
JSONField - A field that stores a Python object as JSON and retrieves it as a Python object.
Installation instructions:
Copy the “annoying” directory to your Django project or put it in your PYTHONPATH.
You can also run “python setup.py install”, “easy_install django-annoying”, or “pip install django-annoying”.
Download:
git clone git://github.com/skorokithakis/django-annoying.git
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
Built Distribution
File details
Details for the file django-annoying-0.8.7.tar.gz
.
File metadata
- Download URL: django-annoying-0.8.7.tar.gz
- Upload date:
- Size: 10.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dd15478a686c64edd1829d2f2c0f1203167c1670fc19da0bbe101b0343913f9a |
|
MD5 | 58106d40d553494e635e4d58ba2e7b72 |
|
BLAKE2b-256 | 9e0a9ba472dd1d6a53135fce550516751096c64455823cd50c9dcf45e0c6e114 |
File details
Details for the file django_annoying-0.8.7-py2-none-any.whl
.
File metadata
- Download URL: django_annoying-0.8.7-py2-none-any.whl
- Upload date:
- Size: 16.2 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8d1cdaabafab8d3d20a3f44c2ce91025849ad005428f6f0f58856a79fe9680b3 |
|
MD5 | 7be41a0da250d57d0427088195b9e2d7 |
|
BLAKE2b-256 | 4c29e70357b4675c572e0a8e27bc8d39639b816854af3de8baeb9b89785ca8bb |