Thanks!

Its working just fine now :)

Alan.

On Apr 30, 10:37 pm, Malcolm Tredinnick <[email protected]>
wrote:
> On Thu, 2009-04-30 at 12:27 -0700, zayatzz wrote:
> > Hello
>
> > I have this in my template :
> > <script type="text/javascript" src="{{ MEDIA_URL }}/tinyMCE/jscripts/
> > tiny_mce/tiny_mce.js"></script>
>
> > settings file is following:
> > MEDIA_ROOT = '/var/www/media/'
> > MEDIA_URL = "http://localhost/media/";
>
> > when i go to the webpage then the stuff that i get from server says
> > <script type="text/javascript" src="/tinyMCE/jscripts/tiny_mce/
> > tiny_mce.js"></script>
>
> > Even when i replace {{ MEDIA_URL }} with anything else i still get
> > this in browser:
> > <script type="text/javascript" src="/tinyMCE/jscripts/tiny_mce/
> > tiny_mce.js"></script>
>
> > Why?
>
> The MEDIA_URL variable will only be populated in your template if the
> template is passed a RequestContext instance as the context (not just a
> Context, because you want the context processors to be executed) *and*
> is you have the "media" context processor in your
> TEMPLATE_CONTEXT_PROCESSORS list (which it will be by default).
>
> I would suspect you've forgotten to pass a RequestContext to
> render_to_response() or whatever call you're using in your view.
>
> Regards,
> Malcolm
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
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