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 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 “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.8.4.tar.gz (9.4 kB view details)

Uploaded Source

Built Distribution

django-annoying-0.8.4.linux-x86_64.tar.gz (20.3 kB view details)

Uploaded Source

File details

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

File metadata

File hashes

Hashes for django-annoying-0.8.4.tar.gz
Algorithm Hash digest
SHA256 273717d461aba22f53b59e27d1de1b1aa19eeb85322f3743b2e11c2698790ad7
MD5 08a50097f2273f91b3c8941d9adb1b14
BLAKE2b-256 5eb1e60ad2ec3d0bee5aced4cd5fdeffe15cd52a7aaa01489fea17a5e70d04b1

See more details on using hashes here.

File details

Details for the file django-annoying-0.8.4.linux-x86_64.tar.gz.

File metadata

File hashes

Hashes for django-annoying-0.8.4.linux-x86_64.tar.gz
Algorithm Hash digest
SHA256 198d0f9464b49f8cd81006b0823071c2527433f5da3d41b7c3e7cbeb6a49dac2
MD5 822b35909475ca7a07cdb4a4a6f7cdad
BLAKE2b-256 f032e96f0bbc243610b778d139bb826ef4fad9b7fa65a2f047bbb701679e401d

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