We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 753b006 commit 503ebe0Copy full SHA for 503ebe0
views/media.py
@@ -57,6 +57,7 @@ def post(self, request, format=None):
57
new_path = os.path.join(
58
settings.MEDIA_URL, app_name, filename
59
)
60
+ media_path=new_path
61
try:
62
shutil.copyfile(source, destination)
63
except IOError:
0 commit comments