Hi,

by the way I solved my Problem... just forgot to gather static files
for productive mode...

My biggest problem was that my server is running with Plesk 10 and
that puts some difficulties
in your way that you shouldn't have with a plain windows server 2008
and iis7.

There are two ways I encountered:

1. Using PyISAPIe:
http://geographika.co.uk/setting-up-python-on-iis7
https://code.djangoproject.com/wiki/DjangoOnWindowsWithIISAndSQLServer

2. Using Microsoft Web Platform Installer (WebPI)
http://www.helicontech.com/articles/run-django-apps-on-iis/

I am using PyISAPIe because the helicontech way was somehow
incompatible with Plesk (on the first try).

Hope that helps.

On 23 Jul., 19:09, CrabbyPete <pete.do...@gmail.com> wrote:
> Have you got django to run on II7 at all. I tried it and was not able
> to get it to work. If you did I'd love to try it and see what comes up
> with it.
>
> On Jul 22, 7:46 am, The Ape <benjamin.hammer...@googlemail.com> wrote:
>
>
>
>
>
>
>
> > Hi,
>
> > I am running Django (1.3) with PyISAPIe (Python 2.6.6) on IIS7.
> > I am using the Django tutorial pages as test sites. Now when I am
> > trying to access the adminsite,
> > the site is loaded without the static files (loaded via IIS7).
> > When I use the Django development server the site is rendered
> > perfectly.  Templates are found...
>
> > Hope someone can help me.
>
> > Thanks!
>
> > my settings look like this:
>
> > STATIC_ROOT = ''
> > STATIC_URL = '/static/'
> > ADMIN_MEDIA_PREFIX = '/static/admin/'
> > STATICFILES_DIRS = (
> > )
>
> > STATICFILES_FINDERS = (
> >     'django.contrib.staticfiles.finders.FileSystemFinder',
> >     'django.contrib.staticfiles.finders.AppDirectoriesFinder',
> > #    'django.contrib.staticfiles.finders.DefaultStorageFinder',
> > )
>
> > TEMPLATE_DIRS = (
> >     "C:/PATH/Django Pages/templates".
> > )
>
> > My ISAPI config:
>
> > from django.core.handlers.wsgi import WSGIHandler as DjangoHandler
> > os.environ["DJANGO_SETTINGS_MODULE"] = "mysite.settings"
> > os.environ["django.root"] = "/mysite"
>
> > sys.path.append(r'C:\PATH\django')
> > sys.path.append(r'C:\PATH\django\contrib\admin')
> > sys.path.append(r'C:\PATH\Django Pages')
> > sys.path.append(r'C:\PATH\Django Pages\mysite')
> > sys.path.append(r'C:\PATH\Django Pages\mysite\polls')
> > sys.path.append(r'C:\PATH\Django Pages\templates')
> > sys.path.append(r'C:\PATH\Django Pages\static')
> > ROOT_URLCONF = 'mysite.urls'

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to