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

Uploaded Source

Built Distribution

django_annoying-0.10.5-py2.py3-none-any.whl (9.7 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: django-annoying-0.10.5.tar.gz
  • Upload date:
  • Size: 9.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.14.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.3

File hashes

Hashes for django-annoying-0.10.5.tar.gz
Algorithm Hash digest
SHA256 3654d16f9e2f86a2f8688820bcf6d797c93db89197a117b1930d350e7a9509dd
MD5 970efdef9583bf168aa3f3298e690759
BLAKE2b-256 c58d2b3bd374da03252fead6be44900c7e0b84e64caebe690dea7fb80f755bf1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: django_annoying-0.10.5-py2.py3-none-any.whl
  • Upload date:
  • Size: 9.7 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.14.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.3

File hashes

Hashes for django_annoying-0.10.5-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 d9fe882258bf7278915e7835b4f93e12e7fd9b14c226eb06e210f9542aa5de5b
MD5 b52bc0a0221c686e579ba3dcc184a50f
BLAKE2b-256 e87030b134543c37714a79f8671f38dbf6b6cb5e658f7ee46f68460e0c252807

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