Is there something similar to 'rake routes' in django?

Posted by The MYYN on Stack Overflow See other posts from Stack Overflow or by The MYYN
Published on 2010-01-19T10:02:45Z Indexed on 2010/06/03 16:14 UTC
Read the original article Hit count: 204

In rails, on can show the active routes with rake (http://guides.rubyonrails.org/routing.html):

$ rake routes
          users GET  /users          {:controller=>"users", :action=>"index"}
formatted_users GET  /users.:format  {:controller=>"users", :action=>"index"}
                POST /users          {:controller=>"users", :action=>"create"}
                POST /users.:format  {:controller=>"users", :action=>"create"}

Is there a similar tool/command for django showing the e.g. the URL pattern, the name of the pattern (if any) and the associated function in the views?

© Stack Overflow or respective owner

Related posts about python

Related posts about ruby-on-rails