Excellent, I have it figured out... or I should say, I have it working. I'm not sure I have it set up correctly, but at least it's working.
At first I couldn't figure out how the view source was going to help me. I mean, I can point the css wherever I want, but trying to access the css files directly gave me a few clues. I'm not sure why, but when I run the development server, I can just give a relative path to the admin css files and it doesn't really matter what I put, it still finds the dashboard.css file under the django insta. But, the mod_python apache one won't. Anyway, long story short, I mapped the same relative path from my admin_media in settings to also have an alias as Graham suggests in my httpd.conf and somehow I got it working. Changing my PythonPath to have \dev instead of \dev\testproj was key. The frustrating part is that I'm used to having everything under my document_root. Moving so many pieces out and having it work in one place and not another, with very little feedback as to why is annoying. I'm sure I'll get the hang of it soon. Anyway, thanks a ton for your help. -Jim On Jul 26, 11:58 pm, oggie rob <[EMAIL PROTECTED]> wrote: > > My problems are this. First off, I was able to get the development > > admin working with my project fine, but when I try to serve it up > > using apache and mod_python, it's looking for the project under my > > Python25 directory (c:\dev\Python25), not in c:\dev\testproj. > > I think you need to say C:\dev in your PythonPath instead of C:\dev > \testproj. Also make sure testproj has an __init__.py file, if it > doesn't already (should have been set up). > To debug, try putting a "import sys, print sys.path" debug statement > in a view & test it in the development server. That will show you what > to expect. > > > Also, when I copy the project to c:\dev\Python25, I can get the admin > > interface, but without CSS. > > So view the source & see where the CSS is supposed to come from. Then > try to get it by typing that address in the browser. I think you'll > find you need a leading slash in front of the mainmedia. > > > And worse, even in the development server, I can't get templates to > > use my custom css files at all. I include a line like > > <link rel="stylesheet" type="text/css" href="/main.css" /> > > but I've tried putting that file everywhere under the sun to no > > effect. > > See source again to determine if the file is being shown to the > browser properly. I'm going to guess that it is rendering just fine, > but you probably don't have main.css set up in your urls.py file > properly. > > Generally though, don't panic! Break down each problem & think it > through and you will probably be able to work it out. > > -rob --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---

