I
I
Itvanya2015-12-17 08:43:38
Python
Itvanya, 2015-12-17 08:43:38

How to write your own training web framework using Python?

Friends, hello everyone! I want to write my own small framework using Python. Previously, I had experience in server programming in PHP and solid experience in writing rich applications on the frontend. In the case of PHP, everything is simpler: there are standard built-in functions that accept, say, a post request from a form, process it, and issue a response. There is no such thing in the standard Python stack. Since I'm doing this purely for practice, I want to: write a small framework, on the basis of which I will write a small cms. Quite simple functionality: authentication through forms, personal user profile, all info goes to DB (sqlite3 is enough), user url-addressing in the form of mycms.com/alex, ajax, and, possibly, chat. I'm not going to write my own template engine, so I'll take it ready.
I want to ask experienced people for advice on how to organize it easier and what exactly to choose between CGI, fastCGI, mod_python, SCGI to communicate with the server. Thanks in advance

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
angru, 2015-12-17
@angru

WSGI
plus read the source code, understand (in ascending order of complexity): kobin , bottle , flask

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question