Y
Y
Your_House2019-10-13 21:19:15
Django
Your_House, 2019-10-13 21:19:15

Explain why I need Python, Django for web programming, and do they replace MySQL?

I decided to get into programming, and started with the web. I have already studied html, css, js (jquery) at a fairly acceptable level, as well as a little python, and now I started to bathe with Django. But not sure if I need this Django. If everything was clear with js (why is it needed, what can I do with the site, etc.), then with Python and Django I am completely lost why I spend time on them.
As I understand it (but I'm not sure if it's true), python itself is useless for the web, and can only be used with Django for this area. But I don't understand how Django simplifies the work. Is it a replacement for some "database" (I'm not sure how these are correctly called) (which I have not started at all), for example, MySQL? Only then everything falls into place. But did I really get it right? Explain, please.
In general, I realized that I don’t want to engage in web programming in the long term, because it’s still not mine. But as I understand it, it’s better to finish it off and start earning money on this knowledge, and then slowly gain experience and move to another area, namely the creation of games (where Python should be very useful, as far as I know).

Answer the question

In order to leave comments, you need to log in

4 answer(s)
A
Anton R., 2019-10-13
@anton_reut

Python is the SERVER language on the web, without it your site won't work like a machine without an engine.
MySQL - data storage. (like a hard drive in a computer)
Html, css - data display. (like a screen in a computer)
Python - data processing, when writing to mysql or outputting to html. (like a processor in a computer)

How did you get into the web if you didn’t understand such elementary things yet?

L
lukoie, 2019-10-13
@lukoie

Look, we have already written about the database above. Let me just say that Python and Django are like Java Script and Jakeware. That is, there is a "lower level" language, and there is already a more generalized framework for it, with which you can write the same thing in one line that you would write in 10 lines in a regular language.
This is what Python and Django are - Python can do a lot of all kinds of mathematics, and in Django you can do different things for the web with simpler constructions, and Django itself will already translate simplified queries into full Python code.

A
Alexander, 2019-10-13
@AleksandrB

You can’t earn extra money on Django, this is the first thing.
Django DOES NOT REPLACE mysql, it works with it. The database is where data is stored, Django processes it. Example: mysql is a folder with files, in order to get files from this folder, you need to run through them, get what you need and give it out (to yourself or to another), in this case you are django.
If you want to go into gamedev - go, don't go here, with such a stack, you will need at least a year of hard work to get the first money.

K
kova1ev, 2019-10-13
@kova1ev

If we imagine a simple scheme, it looks something like this:
- some page of the site is displayed in the browser. The user can do some things with it - enter data, request some content.
- the page itself makes requests to the server to get the data the user needs, or, for example, sends the data entered into the form. Moreover, the page itself is also sent from this server.
- the server can access the database to take something from there, or write it there.
The server in this scheme can be written in different programming languages ​​using different frameworks. Django is one of them and is written in python. The same can be done, for example, in javascript using the Express framework, or in PHP using Laravel.
For a clearer understanding, I recommend reading about http and all sorts of GET, POST and other requests, about the interaction between the client and the server.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question