#learningpython

Leo ·

#learningpython

Replies

Leo ·

I would recommend pycharm or vscode for python development over xcode, even if xcode has some support for python, it's almost certainly lacking compared to these tools

Leo ·

On Mac, old version of Python (2.7) is already installed, so this will be a second installation that is called in terminal with python3. So following install steps when running python commands should always use python3

Leo ·

Pip installer is like Python's package manager, install it with this curl in terminal

Leo ·

use python venv module to setup a virtualenv

Leo ·

install #django

metamitya ·

this is cool, you're documenting you learning process, and now you have a way to share it and remind yourself if you forget

Leo ·

#keywordarguments are like javascript taking an object as a prop with different named properties, so it solves the issue of having func(1, 2, 3) where the nature of the parameters is unclear by doing: 

JS: func({ descriptiveName: 1, otherName: 2 }) with python keyword args, this functionality is built in: Python: func(descriptiveName=1, otherName=2)

Leo ·

python manage.py createsuperuser

Leo ·

pip freeze > requirements.txt   pip install -r requirements.txt