[Apache] Trouble deploying my web app with mod_python

17 views
Skip to first unread message

Issam Outassourt

unread,
Nov 14, 2012, 5:45:40 AM11/14/12
to django...@googlegroups.com
Hi all,
I've got a problem deploying my new app that i designed on my personal server that i run on my computer and i would like some help to deal with this.

Here's the problem. You can see down here what happens when I try to visualize my home page :

ServerName:     '127.0.1.1'
DocumentRoot:   '/var/www'

URI:            '/'
Location:       '/'
Directory:      None
Filename:       '/var/www/'
PathInfo:       ''
I get this due to the PythonDebug On that's on my apache2.conf file, from which i've got these lines which normally set the server to append the django developped app (from what i understood) :

LoadModule python_module /usr/lib/apache2/modules/mod_python.so

<Location "/">
SetHandler python-program
PythonHandler django.core.handlers.modpython
SetEnv DJANGO_SETTINGS_MODULE mysite.settings
PythonDebug On
PythonPath "['/home/issam/Workspace/Django/DjangoCode/', '/home/issam/Workspace/Django/DjangoCode/mysite/'] + sys.path"
</Location>
to help you out there, my settings.py file lives in /home/issam/Workspace/Django/DjangoCode/mysite/mysite

I wish i could get help from you guys and that you've got sufficient details to help me out with this.

Thanks in advance.

jirka.v...@gmail.com

unread,
Nov 14, 2012, 8:19:42 AM11/14/12
to django...@googlegroups.com
Hi Isaam!

Do you have a specific reason for using mod_python?

This module is old and deprecated. The recommended way is to use other modules, many people use mod_wsgi which is really simple to deploy and use.

HTH

Jirka
From: Issam Outassourt <issamou...@gmail.com>
Date: Wed, 14 Nov 2012 11:45:40 +0100
Subject: [Apache] Trouble deploying my web app with mod_python
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django...@googlegroups.com.
To unsubscribe from this group, send email to django-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

Issam Outassourt

unread,
Nov 14, 2012, 9:14:22 AM11/14/12
to django...@googlegroups.com

Well
I started discovering django through the djangobook.
I'll try wsgi and let you know.
Thabks for your help

Reply all
Reply to author
Forward
0 new messages