.
This commit is contained in:
+4
-4
@@ -24,14 +24,14 @@ from generic.models import Site, Condition, Sign, ExamBase
|
||||
|
||||
image_storage = FileSystemStorage(
|
||||
# Physical file location ROOT
|
||||
location=u"{0}rapids/".format(settings.MEDIA_ROOT),
|
||||
location=u"{0}".format(settings.MEDIA_ROOT),
|
||||
# Url for file
|
||||
base_url=u"{0}rapids/".format(settings.MEDIA_URL),
|
||||
base_url=u"{0}".format(settings.MEDIA_URL),
|
||||
)
|
||||
|
||||
def image_directory_path(instance, filename):
|
||||
return u"{0}".format(filename)
|
||||
return u"picture/{0}".format(filename)
|
||||
#return u"{0}".format(filename)
|
||||
return u"rapids/picture/{0}".format(filename)
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user