django url from another template than the one associated with the view-function
Posted
by dana
on Stack Overflow
See other posts from Stack Overflow
or by dana
Published on 2010-05-29T14:04:29Z
Indexed on
2010/05/29
14:12 UTC
Read the original article
Hit count: 221
Heyy there, i have an application, and in my urls.py i have something like that:
urlpatterns = patterns('',
url(r'^profile_view/(?P<id>\d+)/$',
profile_view,
name='profile_view'),)
meaning that the profile_view function has id as a parameter. Now, i want to call that function from another template than the one associated with the def-view that has this url. How should i do that? i have to put two render_to_response to one same function, in order to render the objects from both models? thank you!
© Stack Overflow or respective owner