Django-fastdev is an app that makes it faster and more fun to develop Django apps
Project description
Django-fastdev is an app that makes it faster and more fun to develop Django apps.
Features
Saner templates
Django templates by default hide errors, and when it does show an error it’s often not very helpful. This app will change this so that if you do:
{{ does_not_exist }}
instead of rendering that as an empty string, this app will give you an error message:
does_not_exist does not exist in context. Available top level variables:
DEFAULT_MESSAGE_LEVELS
False
None
True
bar
csrf_token
foo
messages
perms
request
user
There are more specialized error messages for when you try to access the contents of a dict, and attributes of an object a few levels deep like foo.bar.baz (where baz doesn’t exist).
Usage
First install: pip install django-fastdev
In settings.py add django_fastdev to INSTALLED_APPS:
INSTALLED_APPS = [
# ...
'django_fastdev',
]
Enjoy a nicer Django experience!
License
BSD
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for django_fastdev-1.0.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f2d63bbd3441dd34b8a0613eff13bca42ab48c10d55362eadfd6613684457dd5 |
|
MD5 | 6104f14c3059591ee801f3528ff23aef |
|
BLAKE2b-256 | 7a1fbbb33540c9e811ee04f35f7bd643a70d428a556a46967d1d36f8df5fb9d8 |