Documentation

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Documentation

Artur Gevorgyan
Hi to all.
In the documentation the whole examples are for machine that has only one python version installed. So I was trying for an hour to understand what I've done wrong with django instalation.
But the reason was I was typing `python` instead of `python3`. Please give some note about that.
I'm just starting to learn python. But I'm a senior JS developer.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/889b613d-95b3-438b-834d-3b75b5eacb2f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Documentation

Jason Johns
basically, there's two versions of python: python 2 and 3.  They're incompatible with each other, though there's ways you can get py2 code to run in py3 (the inverse is not true).  Effectively, think of what ES6 would have been like if TC39 had the guts to make a backwards incompatible version of ECMAscript to clean up JS warts once and for all.

Thing is, lots of operating system functionality relies on python 2, so you can have two versions of python installed on your system, with the python3 command pointing to v3.

Furthermore, you really should be using virtualenvs, which are effectively like smaller node_modules.  then doing python $COMMAND will point to your venv python symlink.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/88150c65-d25c-4296-a03a-1e178a179de9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Documentation

Jason Johns
Furthermore, the reason this isn't mentioned in the django docs is because its assumed the developer will have familiarity with python.  I would suggest you get comfortable with python and then learn a framework like django/flask.  Learning both at the same time can be done (I did it), but it would be like me learning JS by doing an Angular or React project, which would definitely not be the best approach.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/171852a3-467a-4b51-9deb-28f74e5294e2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Documentation

Artur Gevorgyan
Thank you in advanced) 
I actually know about the two versions of python the differences,  and about not compatibility. 
So I've learned the main concerns in python and I just wanted to have a overlook to django yet not in real project. 
But the case I have mentioned was just for a non programmer a green beginner as the documentation says that it is ok for beginner to start with this. I understand that this is because of my machine. I've installed the one this two)))) 
But maybe some guy with non experience will face the same issue on his machine. 
Thanks a lot. I love thus community, very fast interaction)) 

On Sun, 26 Aug 2018, 17:51 Jason, <[hidden email]> wrote:
Furthermore, the reason this isn't mentioned in the django docs is because its assumed the developer will have familiarity with python.  I would suggest you get comfortable with python and then learn a framework like django/flask.  Learning both at the same time can be done (I did it), but it would be like me learning JS by doing an Angular or React project, which would definitely not be the best approach.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/171852a3-467a-4b51-9deb-28f74e5294e2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAEGOAs7_gthKd7mdHN6QXwQ_Wkr_MtKmygABhsEe64yvusNZEQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.