N
N
Nikita Shchypylov2015-12-18 18:38:23
Django
Nikita Shchypylov, 2015-12-18 18:38:23

Whose syntax is used in frameworks?

Hello everyone
I want to work on the back-end . I
got acquainted with the basic concepts of python (codeacademy, Lutz, etc.)
I discovered Django-a different syntax, incomprehensible methods like socket (), listen () and so on (now I figured it out, but this is how to work with each method- takes time)
What book describes all these methods, this syntax (the $ sign was a surprise for me) is described?
Thanks

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
sim3x, 2015-12-18
@sim3x

obscure methods like socket(),listen()

socket
listen
is the core python library
First you need to explore https://docs.python.org/3/library/functions.html
then https://docs.python.org/3/library/index.html
This is not a syntax, this is a mnemonic born from the standard bash prompt prompt
By default
, $ means the command is run as user
# means the command is run as root
tldp.org/HOWTO/Bash-Prompt-HOWTO/bash-prompt-escap.. If you see
these characters - do not insert before the command
$ ./manage.py migrate== run command ./manage.py migrateas user
# apt-get install python-dev== run command apt-get install python-devas root

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question