Re: configuring production server for static media

2008-11-21 Thread Serdar T.
For posterity, I should point out that Graham's suggestion did indeed work and the final set of problems stemmed from my django app code. I had copied over some old code from my development environment to the production server, but the dev server was running an older version of django so the code

Re: configuring production server for static media

2008-11-20 Thread Carl Meyer
Please stop the excessive top-posting; it makes reading the list digest painful. Quote only what you need to, and locate the quotes appropriately in your response. Thanks! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Gro

Re: configuring production server for static media

2008-11-20 Thread Karen Tracey
On Thu, Nov 20, 2008 at 9:15 AM, Serdar T. <[EMAIL PROTECTED]> wrote: > > ok. so that fix workedkind of. > > I now get the properly formatted admin login page when I visit > http://mysite.org/admin/ > > But when I log in, the following 500 Internal Server Error appears: > "I'm sorry, that pag

Re: configuring production server for static media

2008-11-20 Thread Serdar T.
ok. so that fix workedkind of. I now get the properly formatted admin login page when I visit http://mysite.org/admin/ But when I log in, the following 500 Internal Server Error appears: "I'm sorry, that page is currently unavailable due to a server misconfiguration." That is actually a cu

Re: configuring production server for static media

2008-11-19 Thread Graham Dumpleton
Try: ADMIN_MEDIA_PREFIX = 'http://media.mysite.org/media/' Web site example always show just a path and not a site name, but source code shows it can be full URL with site name. # URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a # trailing slash. # Examples: "http

Re: configuring production server for static media

2008-11-19 Thread Serdar T.
I think my prior response missed the mark in terms of sample html and url. To be precise: http://mysite.org/admin/ yields the below html: http://www.w3.org/1999/xhtml"; lang="en-us" xml:lang="en- us" > Log in | Django site admin <<<>>> On Nov 19, 1

Re: configuring production server for static media

2008-11-19 Thread Serdar T.
On Nov 19, 10:32 pm, Graham Dumpleton <[EMAIL PROTECTED]> wrote: > On Nov 20, 2:10 pm, "Serdar T." <[EMAIL PROTECTED]> wrote: > > > hmm...I modified the root as you suggested but still the same results: > > I get the admin page minus any stylesheets, etc. > > > I'm confused though: what exactly

Re: configuring production server for static media

2008-11-19 Thread Graham Dumpleton
On Nov 20, 2:10 pm, "Serdar T." <[EMAIL PROTECTED]> wrote: > hmm...I modified the root as you suggested but still the same results: > I get the admin page minus any stylesheets, etc. > > I'm confused though: what exactly is the ADMIN_MEDIA_PREFIX prefixing? > >  It seems that the setting tacks "

Re: configuring production server for static media

2008-11-19 Thread Serdar T.
hmm...I modified the root as you suggested but still the same results: I get the admin page minus any stylesheets, etc. I'm confused though: what exactly is the ADMIN_MEDIA_PREFIX prefixing? It seems that the setting tacks "/media" to the end of root path as a way of defining where the server s

Re: configuring production server for static media

2008-11-19 Thread Graham Dumpleton
If: ADMIN_MEDIA_PREFIX = '/media/' means that static media URLs will all be prefixed with that, then wouldn't: root /home/user/public_html/mysite/public/media; need to be: root /home/user/public_html/mysite/public; This is because you have location '/' on nginx mapped to this directory

configuring production server for static media

2008-11-19 Thread Serdar T.
Hello folks, Can anyone out there offer advice on glitches in my production environment, as well as explain the relevant settings.py in plain English for a newbie? I've been pulling my hair out for weeks trying to get an nginx reverse proxy to serve static media while apache mod_wsgi serves up dy