Serving files uploaded by a user during development in django
问题 This might be a dumb question but in the documentation it says: Serving files uploaded by a user during development.¶ During development, you can serve user-uploaded media files from MEDIA_ROOT using the django.contrib.staticfiles.views.serve() view. This is not suitable for production use! For some common deployment strategies, see Deploying static files. For example, if your MEDIA_URL is defined as /media/, you can do this by adding the following snippet to your urls.py: from django.conf