Opened 17 years ago

Closed 17 years ago

#5211 closed (fixed)

[newforms-admin] Admin media Problem

Reported by: anonymous Owned by: Adrian Holovaty
Component: contrib.admin Version: newforms-admin
Severity: Keywords: url admin media
Cc: django@… Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

My settings.py looks like this:

# Absolute path to the directory that holds media.
# Example: "/home/media/media.lawrence.com/"
MEDIA_ROOT = '/home/florian/Desktop/diather/phonebook/media/'
MEDIA_URL = 'http://127.0.0.1:8000/media/'
ADMIN_MEDIA_PREFIX = '/media/admin/'

And The admin requests:

[20/Aug/2007 11:19:01] "GET /media//media/admin/js/admin/media/admin/js/admin/me[[[[SNIP]]]]admin/DateTimeShortcuts.js HTTP/1.1" 302 0

svn info

Path: .
[[ removed urls askimet thinks its spam? ]]
Repository UUID: bcc190cf-cafb-0310-a4f2-bffc1f526a37
Revision: 5985
Node Kind: directory
Schedule: normal
Last Changed Author: adrian
Last Changed Rev: 5984
Last Changed Date: 2007-08-20 07:00:52 +0200 (Mon, 20 Aug 2007)

When I replaced ADMIN_MEDIA_PREFIX = '/media/admin/' with 'admin/' the js were found fine but the forms.css requested the wrong url...

Change History (1)

comment:1 by Russell Keith-Magee, 17 years ago

Resolution: fixed
Status: newclosed

(In [5986]) Fixed #5211 -- Added paths starting with '/' to the list of paths that are preserved as-is by the widget media framework.

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