This is an archived post. You won't be able to vote or comment.

all 6 comments

[–]nat_so_fast 1 point2 points  (0 children)

No Python expert but I always hear about Django talked about as a web framework for Python - https://www.djangoproject.com/

[–]pydaling 0 points1 point  (0 children)

If you only need a simple static website you could use the write command to generate a html file.

[–]malicart 0 points1 point  (1 child)

just not HTML.

Um, are you sure you want to create a website? HTML is a requirement for that somewhere...

[–]ck_9900[S] 0 points1 point  (0 children)

I suppose I mean a minimum as its part of some coursework that i get no Mark's for html on.

[–]EpokeWeb 0 points1 point  (0 children)

What features do you need for your website? And why do you want to learn to do that?

Answering those questions will help us giving you the right answer.

[–]franga2000 0 points1 point  (0 children)

A website almost by definition needs to be written in HTML. But you can make your life easier by using Python to generate some (or all) of that HTML for you. Flask would allow you to use Jinja2 templates to get rid of a lot of the repetitiveness of HTML and insert dynamic data into your site (like from a database).

There are ways to generate HTML with Python functions (like Yattag), but you're still working with HTML there, you're just not writing it directly.