[Django] #34348: Add medium path to the settings.py file from the time the project is created

1 view
Skip to first unread message

Django

unread,
Feb 17, 2023, 1:03:47 PM2/17/23
to django-...@googlegroups.com
#34348: Add medium path to the settings.py file from the time the project is
created
-------------------------------------+-------------------------------------
Reporter: | Owner: estuardodev
estuardodev |
Type: New | Status: assigned
feature |
Component: File | Version: dev
uploads/storage |
Severity: Normal | Keywords:
Triage Stage: | Has patch: 0
Unreviewed |
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------+-------------------------------------
Currently when creating a new project in the file **settings.py** comes by
default the **static** path but does not come the average and I feel that
this is a great disadvantage for those who are starting with the framework
since the comment that static has indicates which files it can contain:

{{{
# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/dev/howto/static-files/

STATIC_URL = 'static/'
}}}

And for the same reason it can generate confusion in new users to save
.mp4, .mp3, etc.

What I suggest is that now also when creating the project it appears like
this:

{{{
# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/dev/howto/static-files/

STATIC_URL = 'static/'

# Media files (MP4, MP3, GIF)
# https://docs.djangoproject.com/en/dev/topics/files/

MEDIA_URL = 'media/'
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/34348>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Feb 17, 2023, 1:20:13 PM2/17/23
to django-...@googlegroups.com
#34348: Add medium path to the settings.py file from the time the project is
created
-------------------------------------+-------------------------------------
Reporter: estuardodev | Owner:
| estuardodev
Type: New feature | Status: assigned

Component: File | Version: dev
uploads/storage |
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by estuardodev):

* stage: Unreviewed => Accepted


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

Django

unread,
Feb 17, 2023, 1:36:11 PM2/17/23
to django-...@googlegroups.com
#34348: Add medium path to the settings.py file from the time the project is
created
------------------------------+---------------------------------------
Reporter: estuardodev | Owner: estuardodev
Type: New feature | Status: closed
Component: Core (Other) | Version: dev
Severity: Normal | Resolution: wontfix
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: assigned => closed
* resolution: => wontfix
* component: File uploads/storage => Core (Other)
* stage: Accepted => Unreviewed


Comment:

`MEDIA_URL` was remove from the project template in
3f1c7b70537330435e2ec2fca9550f7b7fa4372e (Django 1.6) and I agree that
''"many sites will never deal with user-uploaded files"''.

You can start a discussion on DevelopersMailingList if you don't agree.

In the future, please don't accept your own tickets.

--
Ticket URL: <https://code.djangoproject.com/ticket/34348#comment:2>

Django

unread,
Feb 17, 2023, 2:23:08 PM2/17/23
to django-...@googlegroups.com
#34348: Add medium path to the settings.py file from the time the project is
created
-------------------------------------+-------------------------------------
Reporter: Estuardo Ramírez | Owner: Estuardo
| Ramírez

Type: New feature | Status: closed
Component: Core (Other) | Version: dev
Severity: Normal | Resolution: wontfix
Keywords: | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------

Comment (by Estuardo Ramírez):

Thank you for the clarification, I'm new to contributing in Django, now I
know I shouldn't accept my own tickets, thanks.

--
Ticket URL: <https://code.djangoproject.com/ticket/34348#comment:3>

Reply all
Reply to author
Forward
0 new messages