I have verified that it is pulling the admin template from the site-
packages and not my new templates directory, for some reason.  I
changed base_site.html and it only updates from the site-packages
base_site.html file, not the local templates directory.

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