durusmail: quixote-users: Newbie Questions
Newbie Questions
2004-02-24
2004-02-24
Newbie Questions
Dave Kuhlman
2004-02-24
On Tue, Feb 24, 2004 at 12:32:57PM -0500, RenderPipe wrote:
> Hello,
>
[snip]
>
> However I have some concerns.
>
> -Must all of my application files be in the cgi-bin? Is this the norm?
> Perhaps someone can post an example of a dir structure?
> The demo.cgi app has everything in 1 place.
>
> I'm used to other web development languages where we create our directory
> structure in the webroot.
>
> -If we used mod_python then where would be store our files for our
> application? Anywhere we like?

I'll let others advise you about mod_python.  However, SCGI will
also enable you to put your application where you want it.  If you
already have Apache installed, then setting up SCGI is fairly
straight forward.  Here is a document that will help you do it:

    http://www.rexx.com/~dkuhlman/quixote_scgi.html

You will find information about SCGI (and other server
configurations) for Quixote here:

    http://www.mems-exchange.org/software/quixote/doc/web-server.html

>
> -If I use mod_python instead of cgi, can I still do the demo tutorial? I
> don't have medusa only apache.
> I can't get the demo.cgi working now since I don't have medusa. I'm
> working on trying to figure this out with apache, so far nil.
>
> -Is there any way possible to work with existing html pages with quixote?

With Quixote, you generate your content, in Python, any way you
want. Quixote's PTL is only one option.  Another possibility would
be to read HTML templates from a disk file, then apply a template
engine in order to fill in variables etc.  You might want to look
into the Cheetah template engine:

    http://www.cheetahtemplate.org/

Here are a few notes on using Quixote and Cheetah for user
interfaces, although there is not much specific to Quixote about
the use of Cheetah:

    http://www.rexx.com/~dkuhlman/quixote_uihowto.html#cheetah

[snip]

Dave

--
Dave Kuhlman
dkuhlman@rexx.com
http://www.rexx.com/~dkuhlman


reply