Skip to content

A simple manage.py command to make it easy to query Django's URL dispatcher

Notifications You must be signed in to change notification settings

krisajenkins/django-urlhelper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Django-URLHelper

A simple manage.py command to make it easy to query Django's URL dispatcher.

Figuring out the correct name for a given URL - for use in a {% url ... %} tag, for instance - can be a bit of a pain. You can always run:

./manage.py shell
> from django.core.urlresolvers import resolve
> resolve( '/some/where' )

...but that's fairly long-winded. This simple project installs a Django command to make it as easy as:

./manage.py resolveurl /some/where

Installation

cd my-django-app
git submodule add git://github.com/krisajenkins/django-urlhelper.git

Then edit settings.py and add 'django-urlhelper' to your INSTALLED_APPS.

About

A simple manage.py command to make it easy to query Django's URL dispatcher

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages