Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: "asimkon ." Newsgroups: comp.lang.python Subject: Re: mod_wsgi not compatible with Wamp 2.4 and python 3.4.3 Date: Wed, 6 Apr 2016 13:57:30 +0300 Lines: 79 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: news.uni-berlin.de PxBKn8bBvxmgX2n+JSHx/A31s7P6IAYOnaJhT2OQxjbg== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; '"""': 0.05; 'django.': 0.05; '"the': 0.07; 'file)': 0.07; 'cc:addr:python-list': 0.09; 'module)': 0.09; 'url:apache': 0.09; 'received:209.85.218': 0.10; 'python': 0.10; 'subject:not': 0.11; '2.7': 0.13; 'def': 0.13; 'django': 0.13; 'apache': 0.14; 'subject:python': 0.14; 'wed,': 0.15; '<body>': 0.16; "'200": 0.16; '(mysql': 0.16; '."': 0.16; '2016': 0.16; 'afterwards': 0.16; 'folder.': 0.16; 'justin': 0.16; 'localhost': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'scripts.': 0.16; 'settings.py': 0.16; 'subject:compatible': 0.16; 'syncdb': 0.16; 'url:33': 0.16; 'wsgi': 0.16; 'wrote:': 0.16; '2.2': 0.18; '>': 0.18; 'email addr:gmail.com>': 0.18; 'windows': 0.20; 'cc:2**0': 0.20; 'cc:addr:python.org': 0.20; 'os,': 0.22; 'cc:no real name:2**0': 0.22; 'am,': 0.23; 'tables': 0.23; 'tried': 0.24; 'import': 0.24; 'url:download': 0.24; 'requests': 0.25; 'install': 0.25; 'compatible': 0.27; 'error': 0.27; 'message-id:@mail.gmail.com': 0.27; "skip:' 10": 0.28; 'project?': 0.29; 'url:mailman': 0.30; 'version,': 0.30; 'skip:[ 10': 0.31; '"the': 0.32; 'up.': 0.32; 'compiled': 0.32; 'run': 0.33; 'problem': 0.33; 'url:python': 0.33; 'url:06': 0.33; 'url:downloads': 0.33; 'url:listinfo': 0.34; 'tue,': 0.34; 'server': 0.34; 'info': 0.34; 'received:google.com': 0.35; 'url:dev': 0.35; 'but': 0.36; 'project': 0.36; 'instead': 0.36; 'there': 0.36; 'url:org': 0.36; 'received:209.85': 0.36; 'framework': 0.36; 'pm,': 0.36; 'subject:: ': 0.37; 'being': 0.37; 'skip:& 10': 0.37; 'thanks': 0.37; 'version': 0.38; 'received:209': 0.38; 'skip:p 20': 0.38; 'files': 0.38; 'unable': 0.39; 'url:mail': 0.40; 'subject:with': 0.40; 'save': 0.60; 'your': 0.60; 'skip:u 10': 0.61; 'entire': 0.61; '500': 0.63; 'complete': 0.63; 'latest': 0.64; 'url:6': 0.66; 'forward': 0.66; 'url:4': 0.70; 'url:wordpress': 0.79; 'url:asp': 0.80; 'browser.': 0.81; '127.0.0.1': 0.84; '2.7.': 0.84; 'cakephp': 0.84; 'reply!': 0.84; 'url:03': 0.84; 'walters': 0.84; 'trouble.': 0.91; 'url:2013': 0.91 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:cc; bh=TRKm7r3Lc18HMPpdFZfh4AmuufZd6pE5XX0KSWUNB0g=; b=0rKJEwDyBxk1l7cusICMgpXtfW9usWXucQsWH7gxjQAaijRINhkXqsgzRUiKv85uYH vvQlKtuRhE+4Q9Tpz27+Dyn/necYW5H+zXdLgFL0hnbQOxp81SrfMY5csm0xXY3Yg8cD Mr+SW7XydiSdCdQR8KURyXaqkWLbdcvV3Z+kYsO5bj1v3eHD+p3wEiinWVPh/AIlHVnh 54WbEo2IFh4r7hLBUe7J0/GVyRzwMxL26STgOy8iXKRgMNXKP6yJ+HidX0cq6QQyyzii v4cGf+ju6xIBEPm1uaXTkqAuVfo/q2HCRpKQDefxdQxGiFu75nlsmZX4Z+ON5bOX6fmB V0NQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to:cc; bh=TRKm7r3Lc18HMPpdFZfh4AmuufZd6pE5XX0KSWUNB0g=; b=HvlogD83/+TxAa4LbOyUirbJSxvzrGyDb4OHYNGFKoAofUbBs1Z29/n+LQ6tbbqm1k N4tbIY997yjRtF3V3iIGL980eqQy356gR7xqNKArxtAxsjTrVwOUZvFxHCmCJqz4X9cS rrtJfRIXJrkgeSNQvl5Y8+1qSnu48/3fWbPlLAJwFDSTn1n+l2GcqNbcrBFvQNMT+vX8 6gXLPLnA5Rhu1zJcfFSS7kyNPoe0mVUzOKOhz0me8FBcVCI7KOcqF4yneEGZIV5pakpb ckDhqhymea6IkuxMGyaDjDhqO1efAoUhcZZRPt7TQsnNFa2m+JRo6bEnDRIXRTjtW4IF 0yeQ== X-Gm-Message-State: AD7BkJJ9hV7qSRxH2f/x9i7t317mjRIQ1RKqAmkKco8sVSGpFv0qmQP53HaD/RzVv3Jpjqrk/5U7OibEZhNewg== X-Received: by 10.157.14.182 with SMTP id 51mr10185348otj.158.1459940251014; Wed, 06 Apr 2016 03:57:31 -0700 (PDT) X-Content-Filtered-By: Mailman/MimeDel 2.1.21 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Mailman-Original-Message-ID: Xref: csiph.com comp.lang.python:106564 I managed to connect Apache 2.2 with django framework successfully using Python 2.7 and mod_wsgi.so (Apache module) thanks to the instructions from https://pusonchen.wordpress.com/2013/06/03/build-django-website-with-apache-mod_wsgi-on-windows/. The problem is that i see the Django project Web page using localhost or 127.0.0.1 in my browser. I want to change it to localhost/mysite as i have built other projects in php with Apache (WampServer) using Cakephp and other php scripts. Is there any way or i will have to sacrifice my entire Apache Web server for just only Django project? Afterwards i just download https://dev.mysql.com/downloads/connector/python/ (MySQL driver) install it and play with syncdb to create tables in my MySQL database. I create the db using phpmyadmin and import the info in my settings.py django project folder. Regards Kostas Asimakopoulos On Wed, Apr 6, 2016 at 8:13 AM, asimkon . wrote: > Thanks for your reply! Unfortunately i am working on Windows and i think > gunicorn is not compatible with that OS, Any other known WSGI server for > Windows otherwise i will have to work with python 2.7. > > Regards > > > On Tue, Apr 5, 2016 at 11:20 PM, justin walters < > walters.justin01@gmail.com> wrote: > >> >> On Apr 5, 2016 12:51 PM, "asimkon ." wrote: >> > >> > I am using Apache to develop Python Web applications via Django. As i am >> > new to python web development, i am having problem to find the right >> > version for mod_wsgi.so (compiled version for Apache 2.4.4 - WampServer >> 2.4 >> > - and python 3.4.3 latest version from ActivePython on Windows x86) and >> i >> > get a 500 internal server error "The server encountered an internal >> error >> > or misconfiguration and was unable to complete your request". >> > >> > when i try to run the following script: >> > >> > def application(environment, start_response): >> > status = '200 OK' >> > response_headers = [('Content-type', 'text/html')] >> > start_response(status, response_headers) >> > page = """ >> > >> > >> >

Hello world!

>> >

This is being served using mod_wsgi

>> > >> > >> > """ >> > return page >> > >> > I just found the following link >> > >> http://grapevine.dyndns-ip.com/download/folder.asp?eid=33&folder=%2Fdownload%2Fapache%2Fmod_wsgi-windows-4.4.6%2Fmod_wsgi-windows-4.4.6%2Fapache24-win32-vc10%2Fmodules%2F >> > but unfortunately i have got incompatibility problems with the compiled >> > files mentioned. Any kind of help would be convenient to me. >> > >> > I am looking for the compiled (.so file) version, as it will save me >> from a >> > lot of trouble. >> > >> > Regards >> > Kostas Asimakopoulos >> > -- >> > https://mail.python.org/mailman/listinfo/python-list >> >> Have you tried using apache as a proxy server to forward requests to a >> dedicated wsgi server such as gunicorn instead of using mod_wsgi? I find >> it's a lot easier to set up. >> > >