﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
32419	"""Serving files uploaded by a user during development"" example unclear about ""urls.py"""	Josef Richter	Amankumar Singh	"Documentation at https://docs.djangoproject.com/en/3.1/howto/static-files/#serving-files-uploaded-by-a-user-during-development suggests amendments to urls.py

If you followed the ""Writing your first Django app"" tutorial over here https://docs.djangoproject.com/en/3.1/intro/tutorial01/, you may end up with two files {{{mysite/urls.py}}} and {{{polls/urls.py}}} and likely to make the above amendment to {{{polls/urls.py}}}, which is incorrect. The files in that case get uploaded to {{{polls/media/images}}} and then cannot be served (404). The documentation should make it clear the amendment needs to be done in {{{mysite/urls.py}}}.

For a person writing Django code for the very first time this is not obvious. I resolved the issue with the help of Django IRC community."	Cleanup/optimization	closed	Documentation	3.1	Normal	fixed	media, uploads, images, forms, MEDIA_URL, MEDIA_ROOT, tutorial		Accepted	1	0	0	0	1	0
