Opened 13 years ago

Closed 11 years ago

#15641 closed New feature (wontfix)

Allow FileSystemStorage(base_url=None) to disable url access

Reported by: Harm Geerts <hgeerts@…> Owned by: nobody
Component: File uploads/storage Version: dev
Severity: Normal Keywords:
Cc: Triage Stage: Design decision needed
Has patch: yes Needs documentation: yes
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

changeset:9946 changed the behaviour of passing base_url=None to the FileSystemStorage contructor.
Before the change it would disable url access whereas now it enables access through MEDIA_URL

The attached patch restores the old behaviour.

Attachments (2)

15641.diff (2.7 KB ) - added by Harm Geerts <hgeerts@…> 13 years ago.
15641-2.diff (3.7 KB ) - added by Harm Geerts <hgeerts@…> 13 years ago.
same patch with additional tests for MEDIA_URL as default

Download all attachments as: .zip

Change History (8)

by Harm Geerts <hgeerts@…>, 13 years ago

Attachment: 15641.diff added

by Harm Geerts <hgeerts@…>, 13 years ago

Attachment: 15641-2.diff added

same patch with additional tests for MEDIA_URL as default

comment:1 by Luke Plant, 13 years ago

Type: New feature

comment:2 by Luke Plant, 13 years ago

Severity: Normal

comment:3 by Julien Phalip, 13 years ago

Needs documentation: set
Triage Stage: UnreviewedDesign decision needed

comment:4 by Aymeric Augustin, 12 years ago

UI/UX: unset

Change UI/UX from NULL to False.

comment:5 by Aymeric Augustin, 12 years ago

Easy pickings: unset

Change Easy pickings from NULL to False.

comment:6 by Florian Apolloner, 11 years ago

Resolution: wontfix
Status: newclosed

Django usually does not and should not serve media files, hence this is imo a non-issue.

Note: See TracTickets for help on using tickets.
Back to Top