#34348 closed New feature (wontfix)
Add medium path to the settings.py file from the time the project is created
Reported by: | Estuardo Ramírez | Owned by: | Estuardo Ramírez |
---|---|---|---|
Component: | Core (Other) | Version: | dev |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
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/'
Change History (3)
comment:1 by , 21 months ago
Triage Stage: | Unreviewed → Accepted |
---|
comment:2 by , 21 months ago
Component: | File uploads/storage → Core (Other) |
---|---|
Resolution: | → wontfix |
Status: | assigned → closed |
Triage Stage: | Accepted → Unreviewed |
comment:3 by , 21 months ago
Thank you for the clarification, I'm new to contributing in Django, now I know I shouldn't accept my own tickets, thanks.
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.