render_to_response pointing to multiple templates

2011-11-07 Thread jay K.
Hello I have a view with the following render_to_template function ... return render_to_response( 'template/template.html', {var'': var}, context_instance=RequestContext(request)) ... I want the render_to_response to point to more than 1 template. So far I've tried adding a dictionary of templ

Re: render_to_response pointing to multiple templates

2011-11-07 Thread Tom Evans
On Mon, Nov 7, 2011 at 3:09 PM, jay K. wrote: > > Hello > > I have a view with the following render_to_template function > > ... > > return render_to_response( 'template/template.html', {var'': var}, > context_instance=RequestContext(request)) > ... > > I want the render_to_response to point to mo

Re: render_to_response pointing to multiple templates

2011-11-07 Thread jay K.
hi, Tom thanks for the reply what I actually want to do is to list several templates in the render_to_response function and be able to choose which one to use can I choose which template to use? thanks again, and let me know if my question is clear enough On Mon, Nov 7, 2011 at 12:18 PM, Tom E

Re: render_to_response pointing to multiple templates

2011-11-07 Thread Tom Evans
On Mon, Nov 7, 2011 at 3:59 PM, jay K. wrote: > hi, Tom > > thanks for the reply > > what I actually want to do is to > list several templates in the render_to_response > function and be able to choose which one to use > > can I choose which template to use? > > thanks again, and let me know if my

Re: render_to_response pointing to multiple templates

2011-11-07 Thread Joey Espinosa
Jay, How are you making the choice for a template? User interaction, specific runtime circumstance, random, etc? -- Joey "JoeLinux" Espinosa* * On Mon, Nov 7, 2011 at 12:04 PM, Tom Evans wrote: > On M

Re: render_to_response pointing to multiple templates

2011-11-08 Thread jay K.
Hello, Tom thanks for your answer I believe it can be done like the way you suggested I should clarify that I am new to django and have no web developing background, so my questions may sound a bit silly sometimes I got another one, if you dont mind how can I retrieve information on a template

Re: render_to_response pointing to multiple templates

2011-12-27 Thread laras126
I am new to Django as well - but in answer to your second question, you'll need to create a views.py within the app and register the url in urls.py in the root. Then you can pull in variables from your app into the template. For example, if you have a Places class which includes a name and address,