Check to see if mod_python is installed/installable. It would quite
easily give you a very simple interface to do what you're looking for.

       --Michael

-- 
Michael Langford
Phone: 404-386-0495
Consulting: http://www.TierOneDesign.com/


On 9/30/07, wormwood_3 <[EMAIL PROTECTED]> wrote:
> Hello all,
>
> I am trying to think of a way to make this happen, but it may not be at all 
> possible:-) I would like to use Python to generate pages on demand for my 
> website. By this I mean, when someone hits www.mysite.com/pagex.html, I want 
> to generate the page pagex.html via a Python script.
>
> I have a script setup that can generate a page from a template file and a 
> file with the body and title of the page in particular I want to generate. 
> Now from this, I need to somehow be able to respond to requests, and then 
> generate the page based on the page requested. I want to do this because my 
> site is on a shared hosting account, so I cannot install a web framework like 
> Django, and the site's pages will be rather simple. At the same time, I would 
> like to use templating, so I do not have repeated identical code between the 
> pages.
>
> Any ideas on this?
>
> Thanks,
> Sam
>
>
> _______________________________________________
> Tutor maillist  -  Tutor@python.org
> http://mail.python.org/mailman/listinfo/tutor
>
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to