-------------urls.py:
from django.conf.urls.defaults import *

urlpatterns = patterns('',

    (r'^polls/(?P<name>.+)$', 'Mysite.polls.views.static'),
#     (r'^polls/(?P<name>news\.html)$', 'Mysite.polls.views.static'),
)


--------------views.py:
# Create your views here.
from django.shortcuts import render_to_response, get_object_or_404

def static(request, name):
    return render_to_response('polls/%s' % name ,{})



---------------news.html:
<img src="nav/nav_1_news_bhb.gif" name="nav_news_BH0"
border="0"  alt="News" align="texttop">

Then http://127.0.0.1:8000/polls/news.html  produces a screen with the
top half of the .gif file in low resolution (big fuzzy dots)
Displaying news.html in either FF or IE displays a full image in full
resolution.

runserver shows:
"GET /polls/news.html HTTP/1.1" 200 105
"GET /polls/nav/nav_1_news_bhb.gif HTTP/1.1" 200 1196

Please -- what am I doing wrong!!


--~--~---------~--~----~------------~-------~--~----~
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