473,386 Members | 1,830 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Quixote demo

I am trying out the quixote 1.0 demo in my linux box. I am able to
view the main demo page using http://localhost/cgi-bin/demo.cgi with
the HelloWorld on top of the page but I was wondering where the demo
files for simple, error, publish_error, 12, 12/factorial, etc ... as
clicking on these links result in file NOT FOUND error.

TIA,

Ernie
Jul 18 '05 #1
7 1649
Ernie,

try:

http://localhost/cgi-bin/demo.cgi/

instead of

http://localhost/cgi-bin/demo.cgi

There is some problem with cgi and demo and slashes

Harald
Jul 18 '05 #2
Thanks a lot Harald.

That slash really amounts to so much difference (and surprises!) On
second reading of the demo.txt documentation, there is indeed a
trailing backslash. Should not the ordinary web user of a quixote web
page be insulated from this technical detail. :)

Ernie.
Harald Massa <cp*********@spamgourmet.com> wrote in message news:<Xn**********************************@195.20. 224.116>...
Ernie,

try:

http://localhost/cgi-bin/demo.cgi/

instead of

http://localhost/cgi-bin/demo.cgi

There is some problem with cgi and demo and slashes

Harald

Jul 18 '05 #3
Hi,

Now, this is OT (sorry). Any hints from users of quixote uing Linux
Mandrake version 9.1 (or greater) Linux distribution on how to do
successfully do the indirect running of demo.cgi? The docs say I have
to add the line in Apache httpd.conf

RewriteRule ^/qdemo(/.*) /www/cgi-bin/demo.cgi$1 [last]

Unfortunately, there are a lot of confusing places for httpd.conf's in
my system.

/usr/share/ADVX/compat/httpd.conf
/usr/share/ADVX/advx-migrate-commonhttpd.conf
/usr/share/ADVX/advx-migrate-httpd.conf
/etc/httpd/conf/commonhttpd.conf
and also
/etc/httpd/conf/httpd2.conf
/etc/httpd/2.0/conf/httpd2.conf
/etc/httpd/2.0/conf/commonhttpd.conf

I picked on, say, /etc/httpd/2.0/conf/httpd2.conf and just appended

RewriteEngine on
RewriteRule ^/qdemo(/.*) /var/www/cgi-bin/demo.cgi$1 [last]

However, the http://localhost/qdemo/ does not work in my browser. I
have tried the other locations, and still no go.

TIA for any helps.

Ernie.
Jul 18 '05 #4
On 31 Jul 2004 16:12:41 -0700, ea*****@yahoo.com (Ernie) declaimed the
following in comp.lang.python:
Unfortunately, there are a lot of confusing places for httpd.conf's in
my system.
Check the startup directory for the apache start file, find out
where it may be running from.

I'd have to shut down and reboot to get to my stale Mandrake
8.2, but I think it is /etc/init/* or such.

Try
locate apache
looking for an .rc file. (or did they drop "locate" from the
distribution, one of the more useful utilities as I recall).
/etc/httpd/conf/commonhttpd.conf
and also
/etc/httpd/conf/httpd2.conf
/etc/httpd/2.0/conf/httpd2.conf
/etc/httpd/2.0/conf/commonhttpd.conf
I'd suspect it is one of those four...
I picked on, say, /etc/httpd/2.0/conf/httpd2.conf and just appended

RewriteEngine on
RewriteRule ^/qdemo(/.*) /var/www/cgi-bin/demo.cgi$1 [last]

However, the http://localhost/qdemo/ does not work in my browser. I
have tried the other locations, and still no go.
Did you restart the apache service so it rereads the conf file?

-- ================================================== ============ <
wl*****@ix.netcom.com | Wulfraed Dennis Lee Bieber KD6MOG <
wu******@dm.net | Bestiaria Support Staff <
================================================== ============ <
Home Page: <http://www.dm.net/~wulfraed/> <
Overflow Page: <http://wlfraed.home.netcom.com/> <

Jul 18 '05 #5
Ernie,
That slash really amounts to so much difference (and surprises!) On
second reading of the demo.txt documentation, there is indeed a
trailing backslash. Should not the ordinary web user of a quixote web
page be insulated from this technical detail. :)


Yes, he should. But the ordinary web user should also be insulated from
using cgi-bin, and should be served by scgi or medusa or twisted.

So nobody really cared to fix this trailing slash problem.

Harald
Jul 18 '05 #6
Regarding my post below, I rewrote

RewriteRule ^/qdemo(/.*) /var/www/cgi-bin/demo.cgi$1 [last]
as
RewriteRule ^/qdemo(/.*) http://%{HTTP-HOST}/cgi-bin/demo.cgi$1
[last]

and it now works, at least on Mozilla and Opera amd in Konqueror
partly. The latter pops up a window to ask me to save or open the page
on some selections, say on "error" and "factorial".

I wonder when the majority of the Python community decide on a
preferred app/web server framework or combine the commonalities of
many rich, powerful and unfortunately fragmented choices: webware,
quixote, spyce, snakelets, webware, zope, twisted, etc? You don't
have to think or learn more than "one obvious way to do it" in Java or
PHP. When Pythonistas claim Python is indeed better for writing web
apps, what mature Python production quality package will you recommend
instead of Java or Php?

Ernie

ea*****@yahoo.com (Ernie) wrote in message news:<5b************************@posting.google.co m>...
Hi,

Now, this is OT (sorry). Any hints from users of quixote uing Linux
Mandrake version 9.1 (or greater) Linux distribution on how to do
successfully do the indirect running of demo.cgi? The docs say I have
to add the line in Apache httpd.conf

RewriteRule ^/qdemo(/.*) /www/cgi-bin/demo.cgi$1 [last]

Unfortunately, there are a lot of confusing places for httpd.conf's in
my system.

/usr/share/ADVX/compat/httpd.conf
/usr/share/ADVX/advx-migrate-commonhttpd.conf
/usr/share/ADVX/advx-migrate-httpd.conf
/etc/httpd/conf/commonhttpd.conf
and also
/etc/httpd/conf/httpd2.conf
/etc/httpd/2.0/conf/httpd2.conf
/etc/httpd/2.0/conf/commonhttpd.conf

I picked on, say, /etc/httpd/2.0/conf/httpd2.conf and just appended

RewriteEngine on
RewriteRule ^/qdemo(/.*) /var/www/cgi-bin/demo.cgi$1 [last]

However, the http://localhost/qdemo/ does not work in my browser. I
have tried the other locations, and still no go.

TIA for any helps.

Ernie.

Jul 18 '05 #7
On 1 Aug 2004 04:41:49 -0700,
Ernie <ea*****@yahoo.com> wrote:
quixote, spyce, snakelets, webware, zope, twisted, etc? You don't
have to think or learn more than "one obvious way to do it" in Java or
PHP. When Pythonistas claim Python is indeed better for writing web


Java is no simpler;
http://www.manageability.org/blog/st...rameworks/view
lists 54 different web frameworks for Java. PHP includes web processing as
part of the core, yet googling for "PHP web framework" also turns up
multiple projects. The claim that other languages are more unified than
Python is not necessarily true.

--amk
Jul 18 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: C GIllespie | last post by:
Dear All, I have wxpython under both windows and Linux. Under Windows there is a nice little demo, which demonstrates all the widgets (with accompanied source code). I presume the same demo...
1
by: John Kinson | last post by:
Hi, I'm trying to get the wxPython demo to run on a Debian sarge testing installation, but encounter the following error when I run the demo script: # ./demo.py Traceback (most recent call...
4
by: Bruce Eckel | last post by:
I'm looking for something "closer to Python" to develop certain types of web systems (rather than going away, forgetting, then coming back and struggling with the Z-shaped learning curve for...
3
by: flab ba | last post by:
Hello: I am new to web app programming, but need to create a web app. I would like to do it in Python After extensive googling, reading news groups, blogs, and outdated / incomplete "web app...
1
by: Mir Nazim | last post by:
Hi I am a PHP developer and in trying to get a better tool for developing web apps, I have been strugling with zope for past few months and still could not get anything useful work up and going....
0
by: jiguorui | last post by:
# I write a quixote demo like this: equest = get_request() request.response.set_cookie('usr_name', 'Jim', path='/') request.response.set_cookie('usr_id', '1', path='/') #but only usr_name can...
1
by: www.web20developers.com | last post by:
http://www.web20developers.com http://www.web20developers.com/index.php?option=com_content&task=view... Ajallerix : AJAX, simple, fast Web image gallery demo ; at Novell AJAX -...
5
by: Andrew P | last post by:
Hello, I am new (very) to Python and have just down loaded the latest version of Python (2.5) and WXPython (2.8). For some reason I cannot get the WXPython demo to run at all. I run windows...
0
by: smalfish | last post by:
hi, i have some question with this,quixote publish width FastCGI.the two scripts like this(root.ptl and hello.ptl): class RootDirectory(Directory): _q_exports = def _q_index (self): """...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.