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.6.tar.gz (9.9 kB view details)

Uploaded Source

Built Distribution

django_annoying-0.8.6-py2-none-any.whl (15.9 kB view details)

Uploaded Python 2

File details

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

File metadata

File hashes

Hashes for django-annoying-0.8.6.tar.gz
Algorithm Hash digest
SHA256 604ac66684f28130e31273ccc8e4f93b869876ba89a97e19f8f1479d53724eca
MD5 ab6915a09e97ddaaac29219c5848844d
BLAKE2b-256 acba6cce8469e61512c30dcf6224ab4b7ee49f43f5cb42e7fa3de85e850350a9

See more details on using hashes here.

File details

Details for the file django_annoying-0.8.6-py2-none-any.whl.

File metadata

File hashes

Hashes for django_annoying-0.8.6-py2-none-any.whl
Algorithm Hash digest
SHA256 249fe447b5ef71bef56250c2c5981cd128d920aed605824760c4fac0782ad99b
MD5 5533ac92df9e728620322b902c1409c1
BLAKE2b-256 8d621f82a813aadcecd0bd86c4674be4035ceb837df6e66063aa5736d77861dd

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