Both import array and import cPicke import with no problems from
command line

To test further, I set up a quick hello world test outside of django
using

<Directory "/var/www/html/test">
  AddHandler mod_python .py
  PythonHandler mptest
  PythonDebug On
</Directory>

and placing the following contents in test:
from mod_python import apache

   def handler(req):
        req.write("Hello World!")
        return apache.OK

when I hit the page I get


Mod_python error: "PythonHandler mptest"

Traceback (most recent call last):

  File "/usr/lib/python2.3/site-packages/mod_python/apache.py", line
287, in HandlerDispatch
    log=debug)

  File "/usr/lib/python2.3/site-packages/mod_python/apache.py", line
457, in import_module
    module = imp.load_module(mname, f, p, d)

  File "/var/www/html/test/mptest.py", line 3

    def handler(req):

    ^

SyntaxError: invalid syntax


This looks like issue with mod_python ....  I'll stop posting on this
issue, as it is definitely not django causing the problem... If you
notice any thing I did wrong with the hello test, I would appreciate
feedback


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to