#6896: Add ability to store only relative paths in a FilePathField
-------------------------------------+-------------------------------------
Reporter: graham.carlyle@… | Owner: nobody
Type: New feature | Status: closed
Component: Database layer | Version: master
(models, ORM) | Resolution: wontfix
Severity: Normal | Triage Stage: Design
Keywords: | decision needed
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by zanuxzan):
Replying to [comment:11 carljm]:
> I buy that there are reasons why someone might prefer to store relative
paths instead of absolute paths. But ultimately, this is an internal
implementation choice; providing options for everything just makes Django
more confusing to use. This added option in the documentation would be one
more thing any new user picking up FilePathField for the first time would
have to understand and make a decision about. For those who really want
relative paths, the code in the patch for RelativeFilePathField can live
outside Django core and work just fine.
I can't see how this logic holds true - like others have stated, there are
already a number of options for FilePathField and this is not any harder
to understand than the other options, in fact, I imagine most users would
be used to the behaviour of FileField, which is stored as relative.
--
Ticket URL: <https://code.djangoproject.com/ticket/6896#comment:15>
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/087.4009e00dd0e9c35a04ce540b3f8f5a38%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.