Skip to main content

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

Faster runserver

Django-fastdev turns off the model validation of the runserver. This makes the runserver much faster to start/restart, and you aren’t editing your models 90% of the time anyway, and when you do and have a problem, the error messages from Django are fairly understandable anyway.

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-fastdev-1.0.4.tar.gz (4.6 kB view details)

Uploaded Source

File details

Details for the file django-fastdev-1.0.4.tar.gz.

File metadata

  • Download URL: django-fastdev-1.0.4.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.9

File hashes

Hashes for django-fastdev-1.0.4.tar.gz
Algorithm Hash digest
SHA256 19b720c94053812a740dea65aa9af5eacb85cb16487860082ed79693a8b4c193
MD5 c1d3c4ce6fc0d6c6e9372ed7fd6212d1
BLAKE2b-256 0ff1e9710736985fec25c8ea0e62ad2088a6a28a6eca77c110b31da21436dc20

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