Re: render_to_response failed to render media files in base.html

2008-10-20 Thread Daniel Roseman
On Oct 21, 4:26 am, "James Bennett" <[EMAIL PROTECTED]> wrote: > On Mon, Oct 20, 2008 at 9:30 PM, Chuck22 <[EMAIL PROTECTED]> wrote: > > Adding context_instance=RequestContext(request) to the method fixed > > the problem. Seems this should be done by default for > > render_to_response method. Than

Re: render_to_response failed to render media files in base.html

2008-10-20 Thread James Bennett
On Mon, Oct 20, 2008 at 9:30 PM, Chuck22 <[EMAIL PROTECTED]> wrote: > Adding context_instance=RequestContext(request) to the method fixed > the problem. Seems this should be done by default for > render_to_response method. Thank you. It would be technically impossible to do this; render_to_respon

Re: render_to_response failed to render media files in base.html

2008-10-20 Thread Chuck22
Adding context_instance=RequestContext(request) to the method fixed the problem. Seems this should be done by default for render_to_response method. Thank you. On Oct 20, 4:36 am, Christian Joergensen <[EMAIL PROTECTED]> wrote: > Chuck Bai2 wrote: > > Here is my view code: > > > def contact(requ

Re: render_to_response failed to render media files in base.html

2008-10-20 Thread Christian Joergensen
Chuck Bai2 wrote: > Here is my view code: > > def contact(request): > form = ContactForm() # An unbound form > return render_to_response('contact.html', { > 'form': form, > }) > My contact form page rendered but without all the media files(CSS files, > Javascripts files, im

render_to_response failed to render media files in base.html

2008-10-19 Thread Chuck Bai2
Here is my view code: def contact(request): form = ContactForm() # An unbound form return render_to_response('contact.html', { 'form': form, }) My contact form page rendered but without all the media files(CSS files, Javascripts files, images). The text part of the page is O