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 use signals as decorators.
ajax_request decorator - returns JsonResponse with this dict as content.
autostrip decorator - strip text form fields before validation.
get_object_or_None function - similar to get_object_or_404, but returns None if object not found.
get_config function - get settings from django.conf if exists, return default value otherwise.
AutoOneToOne field - creates related object on first call if it doesnt 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 - custom field that lets you easily store JSON data in one of your model fields.
Installation instruction:
Copy annoying directory to your django project or put in PYTHONPATH
Also you can run sudo python setup.py install or sudo easy_install django-annoying
Download:
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
File details
Details for the file django-annoying-0.7.5.tar.gz
.
File metadata
- Download URL: django-annoying-0.7.5.tar.gz
- Upload date:
- Size: 7.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4016b111a00e550900b014f231ad28b842db95bb1a7ccf154ffaf239d54cf991 |
|
MD5 | 7e4187e2ae95c8c1d9e00632156921b6 |
|
BLAKE2b-256 | b08079ec9a667b754b8e068b529184f67c87563ab9756112a9db67f7590cb4e6 |