Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <img src="{{Object.picture.url}}"/>
- <img src="{{ posts.title_picture.url }}"/>
- <img src="{{title_picture.url}}"/>
- class Post(models.Model):
- title = models.CharField(max_length=255, blank=True, null=True)
- title_picture = models.FileField(blank=True,null=True)
- class IndexView(ListView):
- model = Post
- context_object_name = 'posts'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement