From 17905a6bd38c56139b5d60638a4fdfb6b8486b30 Mon Sep 17 00:00:00 2001 From: hancush Date: Wed, 24 Jul 2019 11:29:24 -0500 Subject: [PATCH] Try updating migration --- councilmatic_core/migrations/0047_update_filepath.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/councilmatic_core/migrations/0047_update_filepath.py b/councilmatic_core/migrations/0047_update_filepath.py index 0395e8a6..0b5694d1 100644 --- a/councilmatic_core/migrations/0047_update_filepath.py +++ b/councilmatic_core/migrations/0047_update_filepath.py @@ -1,5 +1,7 @@ # Generated by Django 2.1.9 on 2019-06-18 17:30 +import os +from django.conf import settings import django.core.files.storage from django.db import migrations, models @@ -14,6 +16,6 @@ class Migration(migrations.Migration): migrations.AlterField( model_name='person', name='headshot', - field=models.FileField(default='images/headshot_placeholder.png', storage=django.core.files.storage.FileSystemStorage(base_url='/', location='/Users/hannah/projects/chi-councilmatic/councilmatic/../chicago/static'), upload_to='images/headshots'), + field=models.FileField(default='images/headshot_placeholder.png', storage=django.core.files.storage.FileSystemStorage(base_url='/', location=os.path.join(settings.STATIC_PATH)), upload_to='images/headshots'), ), ]