diff --git a/cloud/models.py b/cloud/models.py index 1d34788..178b25b 100644 --- a/cloud/models.py +++ b/cloud/models.py @@ -8,7 +8,7 @@ from django.conf import settings def user_directory_path(instance, filename): # file will be uploaded to MEDIA_ROOT/agency_/files// - return settings.MEDIA_URL + 'agencydata/agency_{0}/files/{1}'.format(instance.agency.pk, filename) + return 'agencydata/agency_{0}/files/{1}'.format(instance.agency.pk, filename) class Data(models.Model):