Debugging utilities for Django.
Project description
Django Debugging
================
Django debugging makes it easier to debug your app during development. Currently it contains the runserver_plus functionality from the project [django-extensions](https://github.com/django-extensions/django-extensions "Django Extensions").
Installation
------------
Run `pip install django-debugging`
If you are using the package from source you will need to install [Werkzeug](http://werkzeug.pocoo.org/) manually.
Add `django-debugging` to your `INSTALLED_APPS` setting:
```python
INSTALLED_APPS = (
...
'django_debugging',
)
```
Getting Started
---------------
To get started use the `runserver_plus` command instead of `runserver`. All `runserver` options will work with `runserver_plus`.
```
$ python manage.py runserver_plus
* Running on http://127.0.0.1:8000/
* Restarting with reloader...
Validating models...
0 errors found
Django version 1.4.1, using settings 'mysite.conf.settings'
Development server is running at http://127.0.0.1:8000/
Using the Werkzeug debugger (http://werkzeug.pocoo.org/)
Quit the server with CONTROL-C.
```
Usage
-----
Werkzeug displays its own traceback page instead of Django's normal traceback page.
It has two options:
###View Source
You can expand and the view the source of each line in the traceback.
###Interactive Console Debugger
Lets you evaluate python expressions in the browser with the context being same as the line in the traceback. Use it to print values, assign variables, or run functions. (*Warning:* This is extremely insecure and should never be run and a production server.)
================
Django debugging makes it easier to debug your app during development. Currently it contains the runserver_plus functionality from the project [django-extensions](https://github.com/django-extensions/django-extensions "Django Extensions").
Installation
------------
Run `pip install django-debugging`
If you are using the package from source you will need to install [Werkzeug](http://werkzeug.pocoo.org/) manually.
Add `django-debugging` to your `INSTALLED_APPS` setting:
```python
INSTALLED_APPS = (
...
'django_debugging',
)
```
Getting Started
---------------
To get started use the `runserver_plus` command instead of `runserver`. All `runserver` options will work with `runserver_plus`.
```
$ python manage.py runserver_plus
* Running on http://127.0.0.1:8000/
* Restarting with reloader...
Validating models...
0 errors found
Django version 1.4.1, using settings 'mysite.conf.settings'
Development server is running at http://127.0.0.1:8000/
Using the Werkzeug debugger (http://werkzeug.pocoo.org/)
Quit the server with CONTROL-C.
```
Usage
-----
Werkzeug displays its own traceback page instead of Django's normal traceback page.
It has two options:
###View Source
You can expand and the view the source of each line in the traceback.
###Interactive Console Debugger
Lets you evaluate python expressions in the browser with the context being same as the line in the traceback. Use it to print values, assign variables, or run functions. (*Warning:* This is extremely insecure and should never be run and a production server.)
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
django-debugging-0.1a2.zip
(8.3 kB
view details)
File details
Details for the file django-debugging-0.1a2.zip
.
File metadata
- Download URL: django-debugging-0.1a2.zip
- Upload date:
- Size: 8.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b83fe0fab41d3da69e2bc6470fb176d66c1f2eb94ecc04b1e58da00eb97169a6 |
|
MD5 | aa3e714be93c2c67cb309cabbdf89e40 |
|
BLAKE2b-256 | 9f060be20aa48697108f62a206c4768748f09a853d2061044b167ddabd3252ba |