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 “python setup.py install”, “easy_install django-annoying”, or “pip 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.10.3.tar.gz (10.3 kB view details)

Uploaded Source

Built Distributions

django_annoying-0.10.3-py2.py3-none-any.whl (11.2 kB view details)

Uploaded Python 2 Python 3

django_annoying-0.10.3-py2-none-any.whl (16.4 kB view details)

Uploaded Python 2

File details

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

File metadata

File hashes

Hashes for django-annoying-0.10.3.tar.gz
Algorithm Hash digest
SHA256 5321e6e3481fc455818b935824d9cd78669a9bb6a964baf816d191745c8617a6
MD5 fe985c41d6ef10c8efcbe66990febec4
BLAKE2b-256 2b8f42d3203498a9e5487467a09548a758c2e6449f92fe17c497fdd51f6c7f95

See more details on using hashes here.

File details

Details for the file django_annoying-0.10.3-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for django_annoying-0.10.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 1884f1452e0b9542c7db2ed7d8cc728b9386bc20af7c8e03607fad31a28b7ead
MD5 a071ce67bdf63d28035ac0db2fae01ee
BLAKE2b-256 f79ecf6467cc4227121196e4bc37148f54b1180db8b47df336dca6196a6867c5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for django_annoying-0.10.3-py2-none-any.whl
Algorithm Hash digest
SHA256 07267defd06e37ad287053de4ea8c83ab4aae8114628830b7c91b70b63494572
MD5 c295b01566e6a3b05ec2c4210de52157
BLAKE2b-256 36b97789424197172f35928e85fb7b2c6fe12086cb6dd61609ed25860fa05506

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