#32551: Need a direct reference of MEDIA_URL and MEDIA_ROOT in file uploads ------------------------------------------------+------------------------ Reporter: Ashutosh Vishu Yadav | Owner: nobody Type: Cleanup/optimization | Status: new Component: Documentation | Version: 3.1 Severity: Normal | Keywords: Triage Stage: Unreviewed | Has patch: 0 Needs documentation: 0 | Needs tests: 0 Patch needs improvement: 0 | Easy pickings: 0 UI/UX: 0 | ------------------------------------------------+------------------------ https://docs.djangoproject.com/en/3.1/topics/http/file-uploads/ **requires a direct reference of** https://docs.djangoproject.com/en/3.1/ref/settings/#std:setting-MEDIA_ROOT and https://docs.djangoproject.com/en/3.1/ref/settings/#media-url
The current file upload doc doesn't show the settings.py changes to achieve the result, rather than all the settings it should tell the **minimum** changes require for the **file upload system** to work so people don't have to look for another blog to find out what was the problem. should include or refer: - a **media** dir in root - **MEDIA_URL = '/media/'** and **MEDIA_ROOT = os.path.join(BASE_DIR, 'media')** -- Ticket URL: <https://code.djangoproject.com/ticket/32551> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/051.f52cdb3752d8d3e4cad5196063dcb6ae%40djangoproject.com.