Skip to main content

What code was responsible for generating a view

Project description

more.whytool: find out what code was responsible for generating a response

more.whytool lets you create a tool that tells you what view code was responsible for handling a request.

To create such a tool you do the following, for instance in the of your project:

from more.whytool import why_tool
from .someplace import SomeApp

def my_why_tool():

where SomeApp is the application you want to query, typically the root application of your project.

Now you need to hook it up in to you can have the tool available:

    'console_scripts': [
        'morewhytool = myproject.main:my_why_tool',

After you install your project, you should now have a morewhytool tool available. You can give it requests:

$ morewhytool /some/path

It tells you:

  • What path directive handled the request.
  • What view directive handled the request.


0.5 (2017-01-13)

  • Initial public release.

Project details

Release history Release notifications | RSS feed

This version


Download files

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

Files for more.whytool, version 0.5
Filename, size File type Python version Upload date Hashes
Filename, size more.whytool-0.5-py3-none-any.whl (5.5 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size more.whytool-0.5.tar.gz (4.4 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page