1<html>
2 <head>
3 {% load staticfiles %} <!-- Prepare django to load static files -->
4 </head>
5 <body>
6 <img src={% static "image.jpg" %}>
7 </body>
8</html>
1from django.db import models
2from django.contrib.auth import get_user_model
3User = get_user_model()
4
5class Image(models.Model):
6 owner = models.ForeignKey(User, on_delete=models.CASCADE)
7 image = models.ImageField(upload_to='Upload', height_field=None, width_field=None, max_length=100)
8
9