Opened 8 years ago

Closed 8 years ago

#5211 closed (fixed)

[newforms-admin] Admin media Problem

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


My looks like this:

# Absolute path to the directory that holds media.
# Example: "/home/media/"
MEDIA_ROOT = '/home/florian/Desktop/diather/phonebook/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 Changed 8 years ago by russellm

  • Resolution set to fixed
  • Status changed from new to closed

(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