hi Aaron - my template includes this link to the css <link rel="stylesheet" href="{{ MEDIA_URL_url }}css/upslookup.css" />
my view is: from django import http from forms import ziplookup from django.shortcuts import get_object_or_404, render_to_response from django.template import RequestContext from django.template import Context, Template def process_ziplookup(request): if request.method=='POST': form = ziplookup(request.POST) if form.is_valid(): zipcode=request.POST.get('zipcode','') return_ziplookup(zipcode) else: form = ziplookup() return render_to_response ("upsratelookup.html",{'form':form}) def return_ziplookup(zipcode): zip=zipcode #assert False, zip return render_to_response("upsratelookup.html",{'zipcode':zip}) thanks in advance for any help BR On Thu, Jun 5, 2008 at 5:20 PM, Aaron Fay <[EMAIL PROTECTED]> wrote: > > Hi Bobby, > > If you are referring to the media url that should be available via the > context processor, then the variable in your template should be: > {{ MEDIA_URL }} > > Unless you specifically are defining 'media_url' in your view. > > Hth, > Aaron > > Bobby Roberts wrote: > > i've got two templates in the same directory. My css works fine on > > one template but not the other. My link to the css is > > > > <link rel="stylesheet" href="{{ media_url }}css/all.css" /> > > > > Can you think of any reason it would work fine for one template and > > not the other when the templates are in the same dir? > > > > > > > > BR > > > > > > > > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---