.
This commit is contained in:
+3
-3
@@ -20,15 +20,15 @@ from helpers.images import image_as_base64
|
||||
|
||||
image_storage = FileSystemStorage(
|
||||
# Physical file location ROOT
|
||||
location=u"{0}/anatomy/".format(settings.MEDIA_ROOT),
|
||||
location=u"{0}/".format(settings.MEDIA_ROOT),
|
||||
# Url for file
|
||||
base_url=u"{0}anatomy/".format(settings.MEDIA_URL),
|
||||
base_url=u"{0}/".format(settings.MEDIA_URL),
|
||||
)
|
||||
|
||||
|
||||
def image_directory_path(instance, filename):
|
||||
# file will be uploaded to MEDIA_ROOT/anatomy/picture/<filename>
|
||||
return u"picture/{0}".format(filename)
|
||||
return u"picture/anatomy/{0}".format(filename)
|
||||
|
||||
|
||||
class BodyPart(models.Model):
|
||||
|
||||
Reference in New Issue
Block a user