Re: site styling works with development server but not apache

2011-02-17 Thread Ashish Agarwal
Progress!! I had to add Alias /adminmedia "/usr/lib/pymodules/python2.6/django/contrib/admin/media" and set ADMIN_MEDIA_PREFIX to the same url /adminmedia/ I don't understand everything yet, and will probably have more problems soon. But at least I got this far. Thanks for all the help!! On

Re: site styling works with development server but not apache

2011-02-17 Thread Mike Ramirez
On Thursday, February 17, 2011 09:23:47 am you wrote: > I'm still having trouble. My directory structure is: > > /usr/local/www/static > > +- contrib/admin/media -- symlink to django/contrib/admin/media > > +- media/admin/base_site.html -- modified version of base_site.html > > I've tried

Re: site styling works with development server but not apache

2011-02-17 Thread Ashish Agarwal
I'm using WSGI and tried your suggestion, but something is still missing. The generated HTML refers for example to a stylesheet href="/media/css/base.css". But this is in the django install directory, which is not being served. So I feel there has to be an Alias pointing there. Even if I did that,

Re: site styling works with development server but not apache

2011-02-17 Thread Marcos Moyano
This is the relevant VirtualHost configuration for admin media WSGI Alias /media "/usr/local/www/static/media/" Order allow,deny Allow from all MOD_PYTHON SetHandler None If this doesn't work perhaps you shoud could paste your VirtualHost

Re: site styling works with development server but not apache

2011-02-17 Thread Ashish Agarwal
I'm still having trouble. My directory structure is: /usr/local/www/static | +- contrib/admin/media -- symlink to django/contrib/admin/media | +- media/admin/base_site.html -- modified version of base_site.html I've tried every combination of the following, but nothing is working: DocumentRoot

Re: site styling works with development server but not apache

2011-02-17 Thread Mike Ramirez
On Thursday, February 17, 2011 07:14:16 am ashish wrote: > Hi all. I followed the tutorial to setup a basic django site and run > it with the development server. Everything looks fine. Then, I > configured to use apache. Everything seems to work except the styling. > The login and admin pages have

Re: site styling works with development server but not apache

2011-02-17 Thread Tom Evans
On Thu, Feb 17, 2011 at 3:14 PM, ashish wrote: > Hi all. I followed the tutorial to setup a basic django site and run > it with the development server. Everything looks fine. Then, I > configured to use apache. Everything seems to work except the styling. > The login and