List Info

Thread: admin on "/" unable to find media




admin on "/" unable to find media
user name
2006-02-14 11:27:14
hi,
so far, using mod_python, i have my location as
"/mysite/" and my 
admin mounted as:
http://mydomain.com
/mysite/admin/
no problems
I tried location as "/" and admin mounted as:
http://mydomain.com/admin/

admin comes up - but css is not found. On looking at the
page source 
of both it gives:
"/media/css/base.css/" in both examples, but in
the second example i 
get a 404 in the logs saying css not found. How to solve
this?
-- 
regards
kg

http://www.li
vejournal.com/users/lawgon
tally ho! http://avsap.org.in
ಇಂಡ್ಲಿನಕ್ಸ வாழ்க!
admin on "/" unable to find media
user name
2006-02-14 13:07:41
can i see your url.py, cause i had to take off the leading
'^' to be
able to recognize the admin part
at /mysite/admin.

admin on "/" unable to find media
user name
2006-02-15 02:38:36
On Tuesday 14 Feb 2006 6:37 pm, coulix wrote:
> can i see your url.py, cause i had to take off the
leading '^' to
> be able to recognize the admin part
> at /mysite/admin.

(r'^admin/',
include('django.contrib.admin.urls.admin')),

-- 
regards
kg

http://www.li
vejournal.com/users/lawgon
tally ho! http://avsap.org.in
ಇಂಡ್ಲಿನಕ್ಸ வாழ்க!
admin on "/" unable to find media
user name
2006-02-15 15:10:27
Kenneth Gonsalves wrote:

>I tried location as "/" and admin mounted
as:
>http://mydomain.com/admin/

>admin comes up - but css is not found. On looking at the
page source 
>of both it gives:
>"/media/css/base.css/" in both examples, but
in the second example i 
>get a 404 in the logs saying css not found. How to solve
this?
>  
>
This is because /media/css/base.css is part of <Location
"/"> and Apache 
feeds this url to Django instead of getting it from the
filesystem.

To exclude /media from mod_python controlled area use
another <Location>:

  Alias /media "/physical/path/to/admin/media/"
  <Location "/media/">
    SetHandler None
  </Location>
[1-4]

about | contact  Other archives ( Real Estate discussion Medical topics )