django: i emanate general url routing views?
i have graceful customary django app, am wondering set url routing i don't have definitely map any url view.
for example, let's contend i have following views: project, links, profile, contact. i'd rather have urlpatterns feeling this:
(r'^project/$', 'mysite.app.views.project'),
(r'^links/$', 'mysite.app.views.links'),
(r'^profile/$', 'mysite.app.views.profile'),
(r'^contact/$', 'mysite.app.views.contact'),
and on. , rudimentary as:
map.connect(':controller/:action/:id')
and automatically squeeze right controller function. there something identical django?
Comments
Post a Comment