Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jabbalaci/django-show_urls-formatter

Beautify the output of `manage.py show_urls`.
https://github.com/jabbalaci/django-show_urls-formatter

Last synced: 3 months ago
JSON representation

Beautify the output of `manage.py show_urls`.

Awesome Lists containing this project

README

        

**Update (20140808):** This project has become obsolete. After contacting the authors
of `django-extensions` ([see the ticket] [1]), they decided to integrate this functionality. Just install the
latest version of `django-extensions` and use it like this:

./manage.py show_urls -f table
./manage.py show_urls -f aligned

I leave this project here but don't use it.

[1]: https://github.com/django-extensions/django-extensions/issues/524

---------------------

Django show_urls formatter
==========================

Beautify the output of `manage.py show_urls`.

The `show_urls` option is added to `manage.py` via the [django-extensions](http://django-extensions.readthedocs.org/en/latest/)
module.

The command `manage.py show_urls` displays all of the url matching routes for the project. However,
the output is not very nice since it is not formatted. This little script puts the data in columns,
thus the output is much easier to read IMO.

Before
------

Normal usage:

$ ./manage.py show_urls

![before](https://raw.githubusercontent.com/jabbalaci/django-show_urls-formatter/master/assets/before.jpg)

After
-----

Usage of the beautifier:

$ ./manage.py show_urls | fmt.py

![after](https://raw.githubusercontent.com/jabbalaci/django-show_urls-formatter/master/assets/after.jpg)

About
-----

* Author: Laszlo Szathmary, 2014 ()
* Website:
* GitHub: