Use uploaded logos in templates

This commit is contained in:
Mouse Reeve
2021-01-04 12:47:10 -08:00
parent 7cc2dfe517
commit 0c0e9bebdf
4 changed files with 17 additions and 17 deletions

View File

@ -18,16 +18,13 @@ class SiteSettings(models.Model):
default="Add a code of conduct here.")
allow_registration = models.BooleanField(default=True)
logo = models.ImageField(
upload_to='static/images/',
default='/static/images/logo.png'
upload_to='logos/', null=True, blank=True
)
logo_small = models.ImageField(
upload_to='static/images/',
default='/static/images/logo-small.png'
upload_to='logos/', null=True, blank=True
)
favicon = models.ImageField(
upload_to='static/images/',
default='/static/images/favicon.ico'
upload_to='logos/', null=True, blank=True
)
support_link = models.CharField(max_length=255, null=True, blank=True)
support_title = models.CharField(max_length=100, null=True, blank=True)