Re: [Django] #35057: Add a setting for project level callable/string for FileField's upload_to (was: [Feature request] Add a setting for project level callable/string for FileField's upload_to)

4 views
Skip to first unread message

Django

unread,
Dec 21, 2023, 12:11:32 PM12/21/23
to django-...@googlegroups.com
#35057: Add a setting for project level callable/string for FileField's upload_to
-------------------------------------+-------------------------------------
Reporter: Vasanth | Owner: nobody
Type: New feature | Status: closed
Component: Database layer | Version: dev
(models, ORM) |
Severity: Normal | Resolution: wontfix
Keywords: Files, models, | Triage Stage:
storage | 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: => wontfix


Comment:

Thanks for this ticket, however creating a new setting is always
controversial (we already have many of them), especially if there is a way
to achieve the same. You can start a discussion on DevelopersMailingList
if you don't agree.

> ... was told having a custom field was the only way to go at the moment
(ref: ​https://forum.djangoproject.com/t/settings-upload-to-at-project-
level-settings/26334)

Yes and that's the right way to do it.

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

Reply all
Reply to author
Forward
0 new messages