tags:

views:

61

answers:

2

I have a view and template called index.html.

I have a image which is broken form.I saw django docs,which was n't clear to me.

How do,i make my image to appear.I m asking ,while development.image is in ,this URL /home/logic/quote/hummingbird.gif'

A: 

what about writing an inclusion tag that makes something simmilar to:

if settings.debug=True:
    return localimage
else:
    return serverimage
renton
+1  A: 

Your question is not really clear but I suspect that you are having trouble serving static files using the Django built-in web server. Have a look at the following StackOverflow Questions:

  1. http://stackoverflow.com/questions/1179453/django-and-serving-static-files
  2. http://stackoverflow.com/questions/402841/how-does-django-serve-media-files
  3. http://stackoverflow.com/questions/446026/django-how-do-you-serve-media-stylesheets-and-link-to-them-within-templates
DrDee