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

Uploaded Source

Built Distributions

django_annoying-0.8.2-py2-none-any.whl (14.5 kB view details)

Uploaded Python 2

django-annoying-0.8.2.linux-x86_64.tar.gz (19.8 kB view details)

Uploaded Source

File details

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

File metadata

File hashes

Hashes for django-annoying-0.8.2.tar.gz
Algorithm Hash digest
SHA256 5e394ebb65819b9d6b44389e0d0f107b3504921293b784ab7cabaa73045f6b2c
MD5 95f8bdca8b1b6e2dce547af902319935
BLAKE2b-256 e919560d96065fe83a90fe6987d15f5c1786fd3922eac916bf2c194425c0e888

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for django_annoying-0.8.2-py2-none-any.whl
Algorithm Hash digest
SHA256 a8a592f97058cab310225db0984371ecfc46d011a65b2dbdcb7cb7923291febc
MD5 2b96009153d77b92bc4ea9be57e52cdd
BLAKE2b-256 5fa72e56998d64900e2800b5083acccf4b84c99af9eedc0ec75f2f1823fd1d64

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for django-annoying-0.8.2.linux-x86_64.tar.gz
Algorithm Hash digest
SHA256 d942ee31f194288aa24273ee3dad540d51c7178ca87d7dff3fb3a9c3dceadfbd
MD5 844b36dd0e01f2ba91491b13e2e4c22a
BLAKE2b-256 5d285e5317b16498f4c3992331707b3526c87b28a79ea951eec19bcb922fcde5

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