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 OK and I can 
see my contact form displayed OK.

If I left the form out, just render the page using direct_to_template 
like below, the page is working fine. All the media files are rendered.

def contact(request):
    return direct_to_template(request, template='contact.html')

My contact.html extends base.html and all the media file references are 
in the base.html. It seems render_to_response failed to render media 
files while direct_to_template delivered successfully. I am using 
development trunk (revision 9236). Anyone knows why?

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to