[Django] #32551: Need a direct reference of MEDIA_URL and MEDIA_ROOT in file uploads

0 views
Skip to first unread message

Django

unread,
Mar 15, 2021, 7:15:52 AM3/15/21
to django-...@googlegroups.com
#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.

Django

unread,
Mar 15, 2021, 7:33:56 AM3/15/21
to django-...@googlegroups.com
#32551: Need a direct reference of MEDIA_URL and MEDIA_ROOT in file uploads
-------------------------------------+-------------------------------------
Reporter: Ashutosh Vishu | Owner: nobody
Yadav |
Type: | Status: closed
Cleanup/optimization |
Component: Documentation | Version: 3.1
Severity: Normal | Resolution: invalid

Keywords: | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak):

* status: new => closed
* resolution: => invalid


Comment:

"File Uploads" docs already contains a reference to
[https://docs.djangoproject.com/en/3.1/topics/http/file-uploads/#changing-
upload-handler-behavior File upload settings]. It's also explained in
[https://docs.djangoproject.com/en/dev/faq/usage/#how-do-i-use-image-and-
file-fields FAQs] and [https://docs.djangoproject.com/en/dev/topics/files
/#managing-files Managing files] docs.

--
Ticket URL: <https://code.djangoproject.com/ticket/32551#comment:1>

Reply all
Reply to author
Forward
0 new messages