On Jan 16, 1:40 am, peterandall <pet...@gmail.com> wrote:
> Hi Graham,
>
> Thanks for the advice, i used mod_wsgi and it worked a treat, no
> issues what so ever. I followed this guide for setting up django and
> everything works well:
>
> http://code.djangoproject.com/wiki/django_apache_and_mod_wsgi

More detailed information in:

  http://code.google.com/p/modwsgi/wiki/IntegrationWithDjango
  http://code.google.com/p/modwsgi/wiki/QuickConfigurationGuide

Graham

> On Jan 14, 11:19 pm, Graham Dumpleton <graham.dumple...@gmail.com>
> wrote:
>
> > Use mod_wsgi instead, it should set up compiler flags correctly even
> > for fussy MacPorts. I can't remember if I rolled those changes into
> > mod_python in subversion trunk. If still want to try mod_python though
> > use:
>
> >   svn cohttps://svn.apache.org/repos/asf/quetzalcoatl/mod_python/trunk
> > mod_python-trunk
>
> > and use that version.
>
> > For other MacOSX/MacPort issues, see mod_wsgi documentation at:
>
> >  http://code.google.com/p/modwsgi/wiki/InstallationOnMacOSX
>
> > Some of these also affect mod_python.
>
> > With mod_wsgi, even if picks up correct framework, but wrong lib
> > files, you can override it to some degree using WSGIPythonHome
> > directive.
>
> > Anyway, use mod_wsgi if you can as am at point where can't be bothered
> > helping with mod_python problems anymore. ;-)
>
> > Graham
>
> > On Jan 15, 4:52 am, peterandall <pet...@gmail.com> wrote:
>
> > > I've also tried doing this:
>
> > > $  cd /System/Library/Frameworks
> > > $  sudo mv Python.framework XXX_Python.framework
>
> > > $  cd  <mod_python distribution directory>
> > > $  ./configure --with-apxs=/opt/local/apache2/bin/apxs --with-python=/
> > > opt/local/bin/python2.4 --with-max-locks=32
>
> > > Then editing the src/Makefile and updating the LDFLAGS to this:
>
> > > LDFLAGS= -Wl,-F/opt/local/Library/Frameworks -Wl,-framework,Python  -u
> > > _PyMac_Error $(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$
> > > (PYTHONFRAMEWORK)   -L/opt/local/lib
>
> > > Then continuing to make and install mod_python
>
> > > $  make
> > > $  sudo make install
> > > $  cd /System/Library/Frameworks
> > > $  sudo mv XXX_Python.framework Python.framework
>
> > > Still no luck, when i run: 'otool -L /opt/local/apache2/modules/
> > > mod_python.so' i get the following:
>
> > >   /opt/local/apache2/modules/mod_python.so:
> > >         /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
> > > version 111.1.3)
> > >         /System/Library/Frameworks/Python.framework/Versions/2.5/Python
> > > (compatibility version 2.5.0, current version 2.5.1)
> > >         /usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current
> > > version 1.0.0)
>
> > > So its still building against the 2.5 version, this is really starting
> > > to confuse me now, i've run out of things to try.
>
> > > Thanks in advance for any help...
--~--~---------~--~----~------------~-------~--~----~
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 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to