Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

Adds a mgmt command to print urls from your Django project

Project description

# django-showurls

[![Build status](https://travis-ci.org/Niklas9/django-showurls.svg?branch=master)](https://travis-ci.org/Niklas9/django-showurls)
[![Latest version](https://img.shields.io/pypi/v/django-showurls.svg?style=flat)](https://pypi.python.org/pypi/django-showurls/)
[![Downloads](https://img.shields.io/pypi/dm/django-showurls.svg?style=flat)](https://pypi.python.org/pypi/django-showurls/)


Adds a new management command that outputs all configured urls from your Django
project.

This is equivalent to Ruby on Rails command "rake routes", which I have found
quite useful lately.

## Usage
First you'll need to add the django_showurls app in your Django project's
settings.py file:

INSTALLED_APPS = (
..
'django_showurls',
..
)

After that you should be able to get an overview of all the urls in your project
by calling the showurls management command from your manage.py:

$ python manage.py showurls
^admin/
^$
^login/$
^logout/$
.. etc ..

## Installation
Install with pip (or easy_install)::

pip install django-showurls

## Todos
* should probably add some system tests that tests the actual command
(./manage.py showurls) on arbitrary Django projects
* look into if we can inspect what HTTP methods a specific url accepts (by
looking at the corresponding view?)

## License

BSD, just as the main Django project. See LICENSE file in root of this repo.

## Contributing

This project accepts contributions via GitHub pull requests.

* follow Google's Python style guide
https://google-styleguide.googlecode.com/svn/trunk/pyguide.html
* make commits of logical units, messages should include what changed and why
and be written in past tense

Project details


Download files

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

Files for django-showurls, version 1.0.1
Filename, size File type Python version Upload date Hashes
Filename, size django-showurls-1.0.1.tar.gz (3.7 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page