J
J
jundevtut2018-06-24 16:41:37
Python
jundevtut, 2018-06-24 16:41:37

How to effectively learn web python and where to start?

Hello. Started learning Python from linux. I learned how to run simple scripts, got acquainted with pip and made a small microseries that works through crontab. I wanted something more and began to look towards the web. I got acquainted with the bottle, but then the problems began. Nginx wsgi and other web servers, a bunch of configs, but there is no understanding of how it works. I want to make a simple site so that several people can log in at the same time, run along with the server and not crash. Even if it fell, restarted. It seems to me that I want to start small, but all the articles advise Django or flask, a lot of software and packages. I don’t like it just to install everything according to the instructions and look at the result, I want to understand what and why, when it is necessary, etc. Yes, and writing code is much more interesting to me than copy-pasting configs. Help me to understand, where to begin? You can just advise what is better in the beginning.

Answer the question

In order to leave comments, you need to log in

5 answer(s)
S
sim3x, 2018-06-24
@sim3x

Don't look at deployment yet
Most of the python development frameworks use the built-in web server
It's more than enough
You need djanga
Start with the tutorial
And restarting the site has nothing to do with the framework - it's about setting up uWSGI

D
devel787, 2018-06-27
@devel787

> I somehow do not like it just to install everything according to the instructions and look at the result,
> I want to understand what and why, when it is necessary, etc.
> Yes, and writing code is much more interesting to me than copy-pasting configs.
> Help me figure out where to start?
> You can just advise what is best in the beginning.
Read the Flask Mega Tutorial series .

J
jershell, 2018-06-24
@jershell

I myself started with django and will not advise it. Unfortunately, in the last meeting with him, he was no longer as relevant as we would like. Now tasks often want to be executed asynchronously, we choose everything that has full support. Therefore, I will advise https://aiohttp.readthedocs.io/en/stable/ and write our own restful | jsonrpc | or another server to start with. If this is difficult, then flask + sqlalchemy + your favorite warm-up templating engine.

M
microNeko, 2018-06-25
@microNeko

With your demands, the bottle is behind your back. Yes, django is such a "standard", only if you choose what most people advise - you are on php and wordpress. Plus, for the first time, you will just copy-paste instructions and tips from SO, and deal with the internal shoals of janga. Plus there is "chic" support and documentation.
In general, your question is not entirely clear - you have already chosen where to start, continue! If you need a "mentor" - hit the mail in the profile.

A
Alexander, 2018-06-28
@Survtur

Try looking towards compact CherryPy . In my opinion, it's very simple.

import cherrypy
    
class HelloWorld(object):
    def index(self):
        return "Hello World!"
    index.exposed = True

cherrypy.quickstart(HelloWorld())

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question