[Tutor] How to Create Webpage with Python

John Cast jdcast at stanford.edu
Fri Jul 11 04:07:15 CEST 2014


Thanks everyone again for the great support.

Right now I have a very basic server running using the http module (I'm
using python 3).  My next step is to generating the HTML pages so that the
formatting of the excel docs stays pretty much the same except that it gets
shown on the web.

For future reference (assuming everything else goes well) how do I procure
a more permanent server (i.e. one that doesn't run on my machine so that I
can turn it off and still be able to visit my pages)?  I'm hearing Apache
and so forth being thrown around (I've read up a little on it) but it seems
those would still run on my local computer.
What am I missing?

I'll keep everyone posted on how the excel parsing turns out.

Thanks again


On Thu, Jul 10, 2014 at 10:24 AM, Chris “Kwpolska” Warrick <
kwpolska at gmail.com> wrote:

> On Thu, Jul 10, 2014 at 6:40 PM, Alex Kleider <akleider at sonic.net> wrote:
> > If all you want is to check how your 'site' looks perhaps it'd be much
> > simpler to simply point your browser to your parent html file rather than
> > set up a server machine to serve it:
> > file:///home/yourusername/yoursubdirectory/index.html
> > It'll look exactly the same as it would if you were running it on a
> server.
> > (or am I missing something?)
>
> JavaScript may not work.  The same might also happen with links and
> resources using the // scheme (//example.com/ instead of
> http://example.com/)
>
> For local testing, use
>
>     python -m SimpleHTTPServer
>
> or, if you’re on Python 3,
>
>     python3 -m http.server
>
> --
> Chris “Kwpolska” Warrick <http://chriswarrick.com/>
> PGP: 5EAAEA16
> stop html mail | always bottom-post | only UTF-8 makes sense
> _______________________________________________
> Tutor maillist  -  Tutor at python.org
> To unsubscribe or change subscription options:
> https://mail.python.org/mailman/listinfo/tutor
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20140710/58a51000/attachment-0001.html>


More information about the Tutor mailing list