Commit 034feae9 authored by Vaughn Fajardo's avatar Vaughn Fajardo

feat: adjusted html and image static files to accomodate new changes

parent 7bca8777
# Generated by Django 4.0.3 on 2022-05-18 09:45
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('homepage', '0008_alter_widgetuser_profile_url'),
]
operations = [
migrations.AlterField(
model_name='widgetuser',
name='profile_url',
field=models.FileField(null=True, upload_to='static/homepage'),
),
]
......@@ -19,7 +19,7 @@ class WidgetUser(models.Model):
on_delete=models.CASCADE,
null=True,
related_name='department')
profile_url = models.FileField(upload_to='static/', null=True)
profile_url = models.FileField(upload_to='static/homepage', null=True)
def __str__(self):
return self.first_name
......
......@@ -20,7 +20,7 @@
<p style="position: absolute; top:240px">
Home Unit: {{ details.department.home_unit }}
</p>
<img src = "/static/{{ details.file }} " width="250" height="250">
<img src = "/static/homepage/{{ details.file }} " width="250" height="250">
</ul>
</div>
{% endblock %}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment