Opened 9 years ago

Closed 9 years ago

#25567 closed Cleanup/optimization (fixed)

Remove obsolete MEDIA_URL/STATIC_URL compatibility condition

Reported by: Claude Paroz Owned by: nobody
Component: Forms Version: dev
Severity: Normal Keywords:
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

The absolute_path method of the forms Media class still contains a compatibility condition that uses settings.MEDIA_URL to construct the path when settings.STATIC_URL is not set. This was introduced in Django 1.3 as a backwards compatibility measure when the media/static separation was introduced.
I think this is now largely obsolete and should be removed.

Change History (2)

comment:1 by Tim Graham, 9 years ago

Triage Stage: UnreviewedReady for checkin

comment:2 by Claude Paroz <claude@…>, 9 years ago

Resolution: fixed
Status: newclosed

In f59a0401:

Fixed #25567 -- Removed obsolete MEDIA_URL fallback in Media.absolute_path

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