Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-annoying-0.7.6.tar.gz (7.4 kB view details)

Uploaded Source

File details

Details for the file django-annoying-0.7.6.tar.gz.

File metadata

File hashes

Hashes for django-annoying-0.7.6.tar.gz
Algorithm Hash digest
SHA256 7cc80ef00d63c3863e03ed97a197f8b71c67b00a5bd9eaf0383a90dcc6117003
MD5 ed6a3afc4e60288686a5089fe19837ed
BLAKE2b-256 ae3400fa24c361c31319b2db6284cd1a0617d0604ebab74d9c71c2c8638a17c5

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page