Django admin view uploaded photo
问题 I have implemented photo upload in Django but I have a problem to view it Django admin. models.py class WorkPlacePhoto(models.Model): file = models.FileField(storage=FileSystemStorage(location=settings.MEDIA_ROOT), upload_to='uploads') Photos are saved in PATH_TO_APP/media/uploads/ and I can view them in my app. However, in admin panel, when I clicked on the link which admin app is generated it gives me 404 error as Request Method: GET Request URL: http://127.0.0.1/admin/wpphotos