Re: How to display an image from model

2011-11-21 Thread Nikolas Stevenson-Molnar
What is the URL you are trying to reach? From what you've provided here, the author id would be 1-2 digits and would need to match a valid Author record in the database. Any chance that either of those are incorrect for your request? (also make sure your request URL ends with a forward slash) On 1

How to display an image from model

2011-11-21 Thread antonio
I'm newbie using django, and I neeto to display a image from the model, I've read about serving static conten but it's not clear to me how to do it. This is my model: class Author(models.Model): first_name = models.CharField(max_length=30) headshot = models.ImageField(upload_to='img/') So i p