A
A
Akmat2017-06-02 08:32:11
PHP
Akmat, 2017-06-02 08:32:11

Linux/Python3/Django/MySQL/Nginx/Apache working environment setup?

Hello.
I am a beginner Python programmer, and recently finished Python and am starting to learn Django.
And I came across such a question as how to set up a working environment.
If you have ever had such a question, how did you solve this problem.
If possible, give the path (directions).
What should I read.
There is still a question I understand that Nginx, Apache web servers.
and here are wsgi and uwsgi, Gunicorn, etc. Why are they needed.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
V
vitaly_74, 2018-09-21
@vitaly_74

if you are parsing json, first look at what conclusion it makes on an elementary example. just do print_f($profileJson); and you will see that the variable (array) $_SESSION does not exist. I hope I understand your problem correctly

E
Eugene, 2017-06-02
@immaculate

Everyone adjusts the working environment for himself, as he likes. There are no ready-made recipes here, and no complicated science either. I'm using PyCharm with the IdeaVim plugin. There is no better PyCharm IDE for Python. It may be overkill for a beginner, however, but when you work for the result, and do not study, then PyCharm allows you to save a lot of time.
A beginner should learn, for example, vim, and edit files for the first time in it. Why vim - because it's comfortable when you know how to use it, doesn't cause carpal tunnel syndrome (after switching from Emacs to vim, I forgot about the pain in my wrists), and is on every Unix/Linux server.
It is very difficult to answer what to read, because the question is very vague, and the source data is not clear (you are a beginner or an experienced user, for example). Have you read Dive Into Python?
wsgi, gunicorn, etc. needed because Nginx and Apache are servers designed primarily for serving static files: html, css, pictures. They don’t know anything about Python and they don’t know how to call Python scripts (more precisely, Apache can do it with mod_python, but now few people use it).

S
sim3x, 2017-06-02
@sim3x

For production, you need to know what virtualenv and pip
are. Nothing else
. Python has a web server to display on the developer's machine
. Everything else will be needed when you have to install the script on production.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question