[BangPypers] Django on Windows XP -> Apache Server

Hussain Bohra hussainbohra_30 at yahoo.com
Thu Dec 11 05:00:38 CET 2008


Hi All,

As of now I am able to setup Django with MySQL in Python 2.3. Now I have to use a Apache Server. I followed the instruction given in 'http://thinkhole.org/wp/2006/04/03/django-on-windows-howto/', Already Install apache_2.2.10-win32-x86-openssl-0.9.8i and mod_python-3.3.1.win32-py2.5-Apache2.0, But after Installation of Mod_Python, I am following this :

======================================
After the installer finishes, you still have one more thing to do.
Open your Apache configuration file, usually located at C:\Program
Files\Apache Group\Apache2\conf\httpd.conf with notepad. Scroll down
and look for a section that includes a bunch of lines that start with
LoadModule. Add the following line to that section:

LoadModule python_module modules/mod_python.so

Save the file and close it. Open up the Apache Service Monitor and click Restart. You should see the following text:

The Apache2 service is restarting. 
The Apache2 service has restarted.

If you get errors, you probably made a typo in the configuration
file when you were editing it. Check it and try again. If you don’t
have any errors, you should be all set.======================================


But I am still getting the following Error in error.log

[Thu Dec 11 09:22:20 2008] [notice] Parent: Received restart signal -- Restarting the server.

[Thu Dec 11 09:22:20 2008] [notice] Child 328: Exit event signaled. Child process is ending.
httpd.exe: Syntax error on line 127 of C:/Program Files/Apache Software Foundation/Apache2.2/conf/httpd.conf: Cannot load C:/Program Files/Apache Software Foundation/Apache2.2/modules/mod_python.so into server: The specified procedure could not be found.  

I tried googling on the same error, but din't able to solve the same. 

I have attached the httpd.conf and error.log of Apache Server 2.2 for further reference, and I verified that mod_python.so is present in a 'C:\Program Files\Apache Software Foundation\Apache2.2\modules' folder.

Please let me know if any one have some idea.

Thanks and Regards,
Hussain Bohra


--- On Mon, 8/12/08, Banibrata Dutta <banibrata.dutta at gmail.com> wrote:
From: Banibrata Dutta <banibrata.dutta at gmail.com>
Subject: Re: [BangPypers] Django on Windows XP
To: hussainbohra_30 at yahoo.com, "Bangalore Python Users Group - India" <bangpypers at python.org>
Date: Monday, 8 December, 2008, 11:51 AM

Google generally leads you too all answers anyway, and it's a gr8 idea to check there first.Via google, I found this:http://thinkhole.org/wp/2006/04/03/django-on-windows-howto/


On Mon, Dec 8, 2008 at 11:37 AM, Hussain Bohra <hussainbohra_30 at yahoo.com> wrote:

Hi All,

I am supposed to make a small application using a Django Framework of a Python. I have already installed and using Python 2.5, But I am not able to set up a Django in a Windows, as I am not able to find out the windows installer in net, what I am getting is only linux installer in http://www.djangoproject.com/download.


I am trying to follow up the instruction provided in http://effbot.org/zone/django.htm,

 "Installing Django on Windows in less than 5 minutes". 


The steps what
 it is telling is:
=====================
Assuming you have Python 2.4 or Python 2.5, exemaker,
and the svn Subversion command-line client.

Python 2.5 # In a command line window, do:

cd C:\Python25\Lib\site-packages
svn co http://code.djangoproject.com/svn/django/trunk/django


cd django\bin
exemaker django-admin.py
Setting up Django #
 Create a work directory, and use django-admin to create a project directory in there.

mkdir c:\mytest
cd c:\mytest
django-admin startproject myproject
---------------------------------------------------------------------------------------------------------


I have downloaded 'exemaker-1.2-20041012.zip' and 'svn-win32-1.5.4_py25.zip' from net but I didn't able to get how to use 'svn-win32-1.5.4_py25.zip', inorder to execute below commands successfully. Is  'svn-win32-1.5.4_py25.zip' is a correct package what I have downloaded, as I can found many packages at http://subversion.tigris.org/servlets/ProjectDocumentList?expandFolder=254&folderID=91

cd C:\Python25\Lib\site-packages
svn co http://code.djangoproject.com/svn/django/trunk/django
I am
 stuck here, Any advice or direction is really appreciable.

Regards,

Hussain Bohra



       Add more friends to your messenger and enjoy!  Invite them now.
_______________________________________________


BangPypers mailing list

BangPypers at python.org

http://mail.python.org/mailman/listinfo/bangpypers





-- 
regards,
Banibrata
http://www.linkedin.com/in/bdutta
http://octapod.wordpress.com






      Add more friends to your messenger and enjoy! Go to http://messenger.yahoo.com/invite/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/bangpypers/attachments/20081210/201f7fbb/attachment-0001.htm>


More information about the BangPypers mailing list