# QuickRoutes

Bitbucket is a code hosting site with unlimited public and private repositories. We're also free for small teams!

Close

# QuickRoutes

QuickRoutes lets you create django routes out of view functions names. It aims to help in prototyping when you just want to move ahead quickly and save the time of designing urls in urls.py files.

It is not intended for production use - for production use the standard django url routing.

import quickroutes
quickroutes.autodiscover()


And add this to the patterns mappings:

urlpatterns = patterns('',
url(r'', include(quickroutes.qr.urls)),
)


from quickroutes import qr


And decorate your view functions like that:

@qr.action
def get__home(req):
pass


The example above automatically creates a url mapping for the verb GET to the get__home() view function.

The mapping convention is <VERB>__<ROUTE>.

# Recent activity

Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.