No modpython.py in python-django 1.6.6-1, which package includes modpython.py?

33 views
Skip to first unread message

nobody

unread,
Sep 17, 2014, 7:52:18 AM9/17/14
to django...@googlegroups.com

Hi,

In Debian 6.0.4, I installed python-django  1.4.5-1 which got /usr/lib/python2.6/dist-packages/django/contrib/auth/handlers/modpython.py. That file is not included in python-django  1.6.6-1 for the Wheezy, and I've got following error from apache2. How can I fix it? Which package should I install to get the modpython.py?

ImportError: No module named modpython

Thank you.

-j

Hannu Krosing

unread,
Sep 17, 2014, 8:26:46 AM9/17/14
to django...@googlegroups.com, jupit...@gmail.com
On 09/17/2014 01:52 PM, nobody wrote:
>
> Hi,
>
> In Debian 6.0.4, I installed python-django 1.4.5-1 which got
> /usr/lib/python2.6/dist-packages/django/contrib/auth/handlers/modpython.py.
> That file is not included in python-django 1.6.6-1 for the Wheezy,
> and I've got following error from apache2. How can I fix it? Which
> package should I install to get the modpython.py?
Try libapache2-mod-python

Cheers
Hannu

Collin Anderson

unread,
Sep 17, 2014, 11:27:00 AM9/17/14
to django...@googlegroups.com, jupit...@gmail.com
I recommend switching from mod_python to mod_wsgi, as django doesn't officially support mod_python anymore.

Reply all
Reply to author
Forward
0 new messages