Karen:

Thank you a million Karen. I changed the curly quotes to ordinary
quotes and restarted Apache. It works fine.

I was elated when I accessed the http://cobra.mycompany.com/petview
and saw it working from another machine. This is my first toy with web
application.

Karen, thank you very much again. Is there way I can buy a beer for
you? Or, please buy yourself a beer and please send me the bill. I
will happy to pay for it. Or if you know another way, please let me
know.

Thank you again.
Nagu


On Jun 24, 10:30 am, "Karen Tracey" <[EMAIL PROTECTED]> wrote:
> On Tue, Jun 24, 2008 at 12:38 PM, Nagu <[EMAIL PROTECTED]> wrote:
>
> > Karen:
>
> > I followed the instructions at
> >http://www.djangoproject.com/documentation/modpython/
> > .
>
> > Here are the settings I added to the httpd.conf file:
>
> > <Location "/petview">
> >    SetHandler python-program
> >    PythonHandler django.core.handlers.modpython
> >    SetEnv DJANGO_SETTINGS_MODULE petinfosite.settings
> >    PythonDebug On
> >    PythonPath "['C:/django/petinfosite','C:/django/petinfosite/
> > petinfostore']+sys.path"
> > </Location>
>
> I assume you restarted Apache after making this change?
>
> The project (settings.py) is in c:/django/petinfosite/ and the
>
> > application (view.py) is in C:/django/petinfosite/petinfostore/.
>
> You're not getting this far yet, but unless C:/django is already in the
> sys.path, your settings file won't be found with what you've placed in
> PythonPath, since you've included 'petinfosite' in both the settings module
> spec and the PythonPath elements.
>
> > When I accesshttp://cobra.mycompany.com/petview, I get a 404 with the
> > following error:
> > The requested URL /petview was not found on this server.
>
> This is the Apache standard 404 error page, meaning your Location directive
> isn't being used.  First question is did you restart Apache?  Assuming yes,
> I tried cut-and-paste of your <Location> block into an Apache config and
> found that all the quotes (both single and double) in that block are
> "curly", not regular straight quotes.  You want typewriter quotes in your
> Apache config, it's not going to understand the others.  So, if the curly
> variety is really what you have in your config, you either need to configure
> the editor you are using to use regular quotes or find another editor and
> fix the quotes.
>
> Karen
>
> > When I accesshttp://localhost:8000/petview/, it works fine.
>
> > Please help.
>
> > Thank you,
> > Nagu
>
> > On Jun 23, 8:37 pm, "Karen Tracey" <[EMAIL PROTECTED]> wrote:
> > > On Mon, Jun 23, 2008 at 7:38 PM, Nagu <[EMAIL PROTECTED]> wrote:
>
> > > > Hi,
>
> > > > I am very new to programming in general. I start to teach myself some
> > > > python and django stuff.
>
> > > > I followed the instructions in the chapter 3 of the book Professional
> > > > Python Frameworks by Moore, Budd, and Wright. Just to give some idea,
> > > > it is a simple pet owner site, select the owner and it displays their
> > > > pets in the browser.
>
> > > > It is working fine from a localhost, i.e. when I type
> > > >http://127.0.0.1:8000/petview.
> > > > Now I want to set it up on a local area network so that I can access
> > > > it from other machine, for example,http://cobra.mycompany.com/petview.
> > > > Here Cobra is the my machine name and mycompany.com is my company
> > > > domain. I do not have access to tinker with mycompany.com. Cobra is a
> > > > windows xp machine attached to the mycompany.com
>
> > > > I installed postgresSQL and Apache and mod_python on the machine
> > > > cobra. Apache is running OK by default. I ranhttp://
> > cobra.mycompany.com
> > > > from another machine, and it displays OK. But when I type
> > > >http://cobra.mycompany.com/petview, I get a 404. I am sure that I am
> > > > doing wrong. I want to learn how to set this kind of settings. Please
> > > > advice.
>
> > > Did you follow the instructions here:
>
> > >http://www.djangoproject.com/documentation/modpython/
>
> > > for how to configure Apache/mod_python to forward requests to your Django
> > > code?
>
> > > Karen
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to