Documentation

14 views
Skip to first unread message

Artur Gevorgyan

unread,
Aug 26, 2018, 9:10:42 AM8/26/18
to Django users
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.

Jason

unread,
Aug 26, 2018, 9:48:02 AM8/26/18
to Django users
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.

Jason

unread,
Aug 26, 2018, 9:51:56 AM8/26/18
to Django users
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.

Artur Gevorgyan

unread,
Aug 26, 2018, 10:26:05 AM8/26/18
to django...@googlegroups.com
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, <jjohn...@gmail.com> 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 django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
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 all
Reply to author
Forward
0 new messages