Umm, nevermind. Forgot I had a vestigial "mysite" leftover in my root directory, from before I realized Django didn't like those files kept in root (duh), & was making the changes there. Deleted that folder, so hopefully it'll be a while b4 I bug you guys w/any further stupid question!
On Aug 22, 6:30 pm, "Jason Witherspoon" <[EMAIL PROTECTED]> wrote: > Well, upwards & onwards. In the interest of forward momentum, I managed to > solve my css problem simply be copying the media folder into my htdocs > folder, & then setting: > > <Location "/media/"> > SetHandler None > </Location> > ...in httpd.conf so that folder gets statically served (thanks to Chpt. 21 of > the Python book "Deploying Django", for that tip). > So I jump back into "tutorial02" on the djangoproject.com page, now that I've > got my css reading correctly. And I add: > class Poll(models.Model): > # ... > class Admin: > pass > > to my mysite/polls/models.py file. Reloading the Django admin page, there's > no change-- "Polls" haven't been added. > > There are a few other subtle differences between my displaying admin page & > the pics in the tutorial-- in the tutorial, "mysite.com" appears right under > "Django administration" on the title bar. There's nothing underneath "Django > administration" on my admin page. > > And my admin page has a "Sites" section under "Auth". Adding "rainbow.coop" > doesn't seem to do much. > > Oh, & of course the tutorial is written for the development server, which I > don't have access to; the tutorial quote is "Note that you don't have to > restart the development server - the server will auto-reload your project, so > any modifications code will be seen immediately in your browser." I figured > maybe w/deployment I *would* need to restart my httpd, & did so. Didn't > help.... > > If anyone has any idea of what I might be doing wrong here, I'd be most > grateful to hear it! > > ________________________________ > > From: django-users@googlegroups.com on behalf of [EMAIL PROTECTED] > Sent: Wed 8/22/2007 4:43 PM > To: Django users > Subject: static css problems on debian sarge > > Hi folks-- > > Rank django newbie here. After a couple of solid days of banging my > head on various brick walls, I've installed Django 0.96 on my Debian > VPS. It's a headless co-location server, so I've set up django to be > administered via Apache2/mod-python on port 8888 (80 is our regular > active webpage-- wish I had a separate box to test on but this'll do > for now). > > Like devjim, I've run into the problem of my admin page not finding > the dashboard.css. Here's the steps I've taken so far, based on that > prior thread here: > > I've added the following to my httpd.conf: > > ************* > Alias /media/ /usr/local/lib/python2.5/site-packages/django/contrib/ > admin/media/ > > <Directory /usr/local/lib/python2.5/site-packages/django/contrib/admin/ > media> > Order deny,allow > Allow from all > </Directory> > ************* > ...didn't make any Linux symlinks, though-- seemed redundant? > > And put the following in my settings.py: > > ************* > # Absolute path to the directory that holds media. > # Example: "/home/media/media.lawrence.com/" > MEDIA_ROOT = '/usr/local/lib/python2.5/site-packages/django/contrib/ > admin/media/' > > # URL that handles the media served from MEDIA_ROOT. > # Example: "http://media.lawrence.com<http://media.lawrence.com/> " > MEDIA_URL = 'http://www.rainbow.coop:8888/media' > ************* > > Restarting apache should reload settings.py, right? > > Anyway, those were some pretty 1/4-assed efforts on my part no doubt, > but I'm tired of trying any old thing I can think of & thought someone > here who knows what they're doing might take pity on me.... Thanks > mucho in advance for anything you guys can think of! > > winmail.dat > 8KDownload --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---