two copies of images are stored each time I upload an image in django?
问题 when I upload an image, i see it uploaded twice in my project. The two locations are /Users/myproject/media/ and /Users/myproject/media/assets/uploaded_files/username/ . I expect the image to be uploaded only to the latter. why two copies are uploaded and how to avoid it? In settings.py: MEDIA_URL="/media/" MEDIA_ROOT = '/Users/myproject/media/' Here is models.py UPLOAD_FILE_PATTERN="assets/uploaded_files/%s/%s_%s" def get_upload_file_name(instance, filename): date_str=datetime.now().strftime