I got it to find the /media/ directory by adding the media folder to
inetpub/wwwroot directory.  I had that when I initially created my
wsgi dll with isapi-wsgi.  I tried changing the root folder to my real
root folder, but it did not affect anything.  It required the media
folder in inet pub.  I'm sure there's probably some way around it, but
for now it works.  It does see my local template directory, after
all.  I changed the base_site.html file and could see the changes.  It
just could see the media file.  All I can do is experiment and see if
django is going to be reliable in this configuration.  Thanks.

On May 2, 3:20 pm, jmDesktop <[EMAIL PROTECTED]> wrote:
> I am using IIS 5.1, xp pro, isapi-wsgi.
>
> I can get the admin page working.  It has not CSS and is plain because
> it cannot resolve the link to the stylesheet /media/css...
>
> In my settings.py I have:
>
> ADMIN_MEDIA_PREFIX = "/media/"
>
> TEMPLATE_DIRS - (
>     "C:/sw/django/mysite/templates", #I have the trailing comma
>
> )
>
> I have tried, in TEMPLATE_DIRS
>
> import os
>
> os.getcwd().replace("\\","/")+'/templates'
> and
> "c:/python25/lib/site-packages/django/contrib/admin/templates",
>
> I try the local templates because I could not get Django to find them
> regularly, so I created my own local templates as per the tutorial.
>
> What could be wrong?  If I use an absolute path in ADMIN_MEDIA_PREFIX
> like:
>
> ADMIN_MEDIA_PREFIX="c:/sw/django/mysite/templates/admin/media/"
>
> it finds the CSS.  I can't leave it that way, of course, because real
> users can never find the absolute path.
>
> I'm not sure what to do.  I have to have Django running on IIS, or I
> cannot use it.  Strict requirement.
>
> Thanks for any help.  I've almost got it.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to