Re: Apache2 displays django app as a file list
That worked! Thanks for your input - you've put me on the road to dumping 7 years worth of Microsoft training to learn and use OpenSource!! On Mar 12, 1:45 am, Daniel Hepper <[EMAIL PROTECTED]> wrote: > Try to set PythonPath to the path where your project lives, not to your > django installation: > > Replace : > PythonPath "['/home/mike/downloads/trunk/'] + sys.path" > > with: > PythonPath "['/home/mike/www'] + sys.path" > > I hope that does the trick. > > Am Sonntag, den 11.03.2007, 09:35 -0700 schrieb Mikey: > > > I have mod-python working - I got a test page to work, but I can't > > seem to get apache to execute python code with in my django app. This > > is what I get when browsing to the django app..http://www.mydom.net/python > > > [DIR] Parent Directory - > > [ ] __init__.py 11-Mar-2007 08:230 > > [ ] __init__.pyc11-Mar-2007 08:25 123 > > [ ] manage.py 11-Mar-2007 08:23 546 > > [ ] settings.py 11-Mar-2007 08:25 2.8K > > [ ] settings.pyc11-Mar-2007 08:25 1.8K > > [DIR] test/ 11-Mar-2007 08:54- > > [ ] urls.py 11-Mar-2007 08:23 225 > > [ ] urls.pyc11-Mar-2007 08:55 220 > > > I'm a new linux user and probably don't have something configured > > properly. > > > I've followed as much of the online documentation and google help as I > > can. I have this in a file under sites-enabled > > > > > ServerName surface > > DocumentRoot /home/mike/www/ > > > > SetHandler python-program > > PythonHandler django.core.handlers.modpython > > PythonPath "['/home/mike/downloads/trunk/'] + sys.path" > > SetEnv DJANGO_SETTINGS_MODULE python.settings > > PythonDebug On > > > > > > SetHandler None > > > > > > > Is is something in this file that I haven't configured properly? I did > > a 'django-admin.py startproject python in the /home/mike/www/ > > directory > > Does that mean my DJANGO_SETTINGS_MODULE is python.settings? Any help > > would be greatly appreciated :) > > > Mike. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Re: Apache2 displays django app as a file list
Try to set PythonPath to the path where your project lives, not to your django installation: Replace : PythonPath "['/home/mike/downloads/trunk/'] + sys.path" with: PythonPath "['/home/mike/www'] + sys.path" I hope that does the trick. Am Sonntag, den 11.03.2007, 09:35 -0700 schrieb Mikey: > I have mod-python working - I got a test page to work, but I can't > seem to get apache to execute python code with in my django app. This > is what I get when browsing to the django app.. http://www.mydom.net/python > > [DIR] Parent Directory - > [ ] __init__.py 11-Mar-2007 08:230 > [ ] __init__.pyc11-Mar-2007 08:25 123 > [ ] manage.py 11-Mar-2007 08:23 546 > [ ] settings.py 11-Mar-2007 08:25 2.8K > [ ] settings.pyc11-Mar-2007 08:25 1.8K > [DIR] test/ 11-Mar-2007 08:54- > [ ] urls.py 11-Mar-2007 08:23 225 > [ ] urls.pyc11-Mar-2007 08:55 220 > > I'm a new linux user and probably don't have something configured > properly. > > I've followed as much of the online documentation and google help as I > can. I have this in a file under sites-enabled > > > ServerName surface > DocumentRoot /home/mike/www/ > > SetHandler python-program > PythonHandler django.core.handlers.modpython > PythonPath "['/home/mike/downloads/trunk/'] + sys.path" > SetEnv DJANGO_SETTINGS_MODULE python.settings > PythonDebug On > > > SetHandler None > > > > Is is something in this file that I haven't configured properly? I did > a 'django-admin.py startproject python in the /home/mike/www/ > directory > Does that mean my DJANGO_SETTINGS_MODULE is python.settings? Any help > would be greatly appreciated :) > > Mike. > > > > --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Re: Apache2 displays django app as a file list
No, that didn't work either - I guess it would be helpful if someone could give me the correct settings for appache2 to run django 0.95 apps.- can someone point me to some examples? I've tried searching the net, but nothing seems to cover the basics... On Mar 11, 8:45 am, "Nathan R. Yergler" <[EMAIL PROTECTED]> wrote: > I don't do tons of mod_python, but one thing that I immediately notice > is that you're mod_python to handle the "/' location, but requesting > the "/python" location. Does it work if you dohttp://mydom.net/? > > On 3/11/07, Mikey <[EMAIL PROTECTED]> wrote: > > > > > I have mod-python working - I got a test page to work, but I can't > > seem to get apache to execute python code with in my django app. This > > is what I get when browsing to the django app..http://www.mydom.net/python > > > [DIR] Parent Directory - > > [ ] __init__.py 11-Mar-2007 08:230 > > [ ] __init__.pyc11-Mar-2007 08:25 123 > > [ ] manage.py 11-Mar-2007 08:23 546 > > [ ] settings.py 11-Mar-2007 08:25 2.8K > > [ ] settings.pyc11-Mar-2007 08:25 1.8K > > [DIR] test/ 11-Mar-2007 08:54- > > [ ] urls.py 11-Mar-2007 08:23 225 > > [ ] urls.pyc11-Mar-2007 08:55 220 > > > I'm a new linux user and probably don't have something configured > > properly. > > > I've followed as much of the online documentation and google help as I > > can. I have this in a file under sites-enabled > > > > > ServerName surface > > DocumentRoot /home/mike/www/ > > > > SetHandler python-program > > PythonHandler django.core.handlers.modpython > > PythonPath "['/home/mike/downloads/trunk/'] + sys.path" > > SetEnv DJANGO_SETTINGS_MODULE python.settings > > PythonDebug On > > > > > > SetHandler None > > > > > > > Is is something in this file that I haven't configured properly? I did > > a 'django-admin.py startproject python in the /home/mike/www/ > > directory > > Does that mean my DJANGO_SETTINGS_MODULE is python.settings? Any help > > would be greatly appreciated :) > > > Mike. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Re: Apache2 displays django app as a file list
I don't do tons of mod_python, but one thing that I immediately notice is that you're mod_python to handle the "/' location, but requesting the "/python" location. Does it work if you do http://mydom.net/ ? On 3/11/07, Mikey <[EMAIL PROTECTED]> wrote: > > I have mod-python working - I got a test page to work, but I can't > seem to get apache to execute python code with in my django app. This > is what I get when browsing to the django app.. http://www.mydom.net/python > > [DIR] Parent Directory - > [ ] __init__.py 11-Mar-2007 08:230 > [ ] __init__.pyc11-Mar-2007 08:25 123 > [ ] manage.py 11-Mar-2007 08:23 546 > [ ] settings.py 11-Mar-2007 08:25 2.8K > [ ] settings.pyc11-Mar-2007 08:25 1.8K > [DIR] test/ 11-Mar-2007 08:54- > [ ] urls.py 11-Mar-2007 08:23 225 > [ ] urls.pyc11-Mar-2007 08:55 220 > > I'm a new linux user and probably don't have something configured > properly. > > I've followed as much of the online documentation and google help as I > can. I have this in a file under sites-enabled > > > ServerName surface > DocumentRoot /home/mike/www/ > > SetHandler python-program > PythonHandler django.core.handlers.modpython > PythonPath "['/home/mike/downloads/trunk/'] + sys.path" > SetEnv DJANGO_SETTINGS_MODULE python.settings > PythonDebug On > > > SetHandler None > > > > Is is something in this file that I haven't configured properly? I did > a 'django-admin.py startproject python in the /home/mike/www/ > directory > Does that mean my DJANGO_SETTINGS_MODULE is python.settings? Any help > would be greatly appreciated :) > > Mike. > > > > > --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Apache2 displays django app as a file list
I have mod-python working - I got a test page to work, but I can't seem to get apache to execute python code with in my django app. This is what I get when browsing to the django app.. http://www.mydom.net/python [DIR] Parent Directory - [ ] __init__.py 11-Mar-2007 08:230 [ ] __init__.pyc11-Mar-2007 08:25 123 [ ] manage.py 11-Mar-2007 08:23 546 [ ] settings.py 11-Mar-2007 08:25 2.8K [ ] settings.pyc11-Mar-2007 08:25 1.8K [DIR] test/ 11-Mar-2007 08:54- [ ] urls.py 11-Mar-2007 08:23 225 [ ] urls.pyc11-Mar-2007 08:55 220 I'm a new linux user and probably don't have something configured properly. I've followed as much of the online documentation and google help as I can. I have this in a file under sites-enabled ServerName surface DocumentRoot /home/mike/www/ SetHandler python-program PythonHandler django.core.handlers.modpython PythonPath "['/home/mike/downloads/trunk/'] + sys.path" SetEnv DJANGO_SETTINGS_MODULE python.settings PythonDebug On SetHandler None Is is something in this file that I haven't configured properly? I did a 'django-admin.py startproject python in the /home/mike/www/ directory Does that mean my DJANGO_SETTINGS_MODULE is python.settings? Any help would be greatly appreciated :) Mike. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---