I have followed the Django IIS installation guide on the Django
website but I'm getting the following error when I point to the
helloworld.py example:
Internal Server Error
An error occurred processing this request.
Request handler failed
Traceback (most recent call last):
File "C:\Python25\Lib\Http\Isapi.py", line 42, in Request
imp.load_source(Name, Env.SCRIPT_TRANSLATED).Request
File "\\?\C:\Inetpub\wwwroot\slamprwebsite\helloworld.py", line 1,
in
from django.http import HttpResponse
ImportError: No module named django.http
On Mon, May 5, 2008 at 1:11 PM, shocks <benmari...@googlemail.com> wrote:
> Hi
> I have followed the Django IIS installation guide on the Django > website but I'm getting the following error when I point to the > helloworld.py example:
> Internal Server Error > An error occurred processing this request.
> Request handler failed
> Traceback (most recent call last): > File "C:\Python25\Lib\Http\Isapi.py", line 42, in Request > imp.load_source(Name, Env.SCRIPT_TRANSLATED).Request > File "\\?\C:\Inetpub\wwwroot\slamprwebsite\helloworld.py", line 1, > in > from django.http import HttpResponse > ImportError: No module named django.http
Traceback (most recent call last):
File "C:\Python25\Lib\Http\Isapi.py", line 42, in Request
imp.load_source(Name, Env.SCRIPT_TRANSLATED).Request
IOError: [Errno 2] No such file or directory
===============
On Tue, May 6, 2008 at 2:11 AM, shocks <benmari...@googlemail.com> wrote:
> Hi
> I have followed the Django IIS installation guide on the Django > website but I'm getting the following error when I point to the > helloworld.py example:
> Internal Server Error > An error occurred processing this request.
> Request handler failed
> Traceback (most recent call last): > File "C:\Python25\Lib\Http\Isapi.py", line 42, in Request > imp.load_source(Name, Env.SCRIPT_TRANSLATED).Request > File "\\?\C:\Inetpub\wwwroot\slamprwebsite\helloworld.py", line 1, > in > from django.http import HttpResponse > ImportError: No module named django.http
> On Tue, May 6, 2008 at 2:11 AM, shocks <benmari...@googlemail.com> wrote:
> > Hi
> > I have followed the Django IIS installation guide on the Django
> > website but I'm getting the following error when I point to the
> > helloworld.py example:
> > Internal Server Error
> > An error occurred processing this request.
> > Request handler failed
> > Traceback (most recent call last):
> > File "C:\Python25\Lib\Http\Isapi.py", line 42, in Request
> > imp.load_source(Name, Env.SCRIPT_TRANSLATED).Request
> > File "\\?\C:\Inetpub\wwwroot\slamprwebsite\helloworld.py", line 1,
> > in
> > from django.http import HttpResponse
> > ImportError: No module named django.http
> Traceback (most recent call last):
> File "C:\Python25\Lib\Http\Isapi.py", line 42, in Request
> imp.load_source(Name, Env.SCRIPT_TRANSLATED).Request
> File "\\?\C:\Inetpub\wwwroot\slamprwebsite\helloworld.py", line 1,
> in
> from django.http import HttpResponse
> ImportError: No module named django.http
Where do you have Django installed? Normally it goes in C:
\Python25\Lib\site-packages. But if you notice in the code above,
that path isn't in the Module Search Path. I also had this problem.
I solved it by moving the Django folder up a level to C:\Python25\Lib.
I know this isn't ideal, but I haven't figure out why the module
search path wouldn't have the site-packages directory in it. When not
using pyisapie, site-packages is in my default search path.
Hi all, I just got wind of this thread today, and I'll be taking a
look at what is causing this weirdness. I created a group for PyISAPIe
support, and it would help a lot if you could head over there and post
what versions of Django and Python you're using.
> Where do you have Django installed? Normally it goes in C:
> \Python25\Lib\site-packages. But if you notice in the code above,
> that path isn't in the Module Search Path. I also had this problem.
> I solved it by moving the Django folder up a level to C:\Python25\Lib.
> I know this isn't ideal, but I haven't figure out why the module
> search path wouldn't have the site-packages directory in it. When not
> using pyisapie, site-packages is in my default search path.
* Make sure the Http module from the PyISAPIe is installed in c:
\Python25\Lib\site-packages
* Stop IIS
* Move PyISAPIe.dll file out of C:\Python25 and into c:\PyISAPIe
(create the directory if you need to)
* Remap the .py handler to the new location of the dll
* Start IIS
Let me know if that doesn't work. It worked for me.
However, this setup will not support multiple installations of
Django. If you want to have multiple Django installations on the same
IIS server, take a look at this thread:
> I have followed the Django IIS installation guide on the Django
> website but I'm getting the following error when I point to the
> helloworld.py example:
> Internal Server Error
> An error occurred processing this request.
> Request handler failed
> Traceback (most recent call last):
> File "C:\Python25\Lib\Http\Isapi.py", line 42, in Request
> imp.load_source(Name, Env.SCRIPT_TRANSLATED).Request
> File "\\?\C:\Inetpub\wwwroot\slamprwebsite\helloworld.py", line 1,
> in
> from django.http import HttpResponse
> ImportError: No module named django.http