More on this book
Community
Kindle Notes & Highlights
by
Eric Matthes
Started reading
November 1, 2018
version of Python
pip install --user virtualenv
Change to the learning_log
environment set up, we need to activate it with the following command:
learning_log$ source ll_env/bin/activate
When the environment is active, you’ll see the name of the environment in parentheses,
To stop using a virtual environment, enter deactivate:
pip install Django
There’s no need to use the --user flag,
that Django will be available only when the environment is active.
(dir on Windows)
db.sqlite3 learning_log ll_env manage.py
ls command shows that Django created another file called db.sqlite3 ➋. SQLite is a
The Django Admin Site When you define models for an app, Django makes it easy for you to work with your models through the admin site.
Learning Log is fully functional now, but it has no styling and runs only on your local machine.
$ python --version
Python on Windows
python --version
Adding Python to Your Path Variable
Control Panel,
System and Security,
System. Click Advanced Syste...
This highlight has been truncated due to consecutive passage length restrictions.
Environment Va...
This highlight has been truncated due to consecutive passage length restrictions.
Click Edit.
snapshots
reverting
make mistakes without worrying about ruining your
Git is the most popular version
Ignoring Files
.pyc
we don’t need Git to keep tra...
This highlight has been truncated due to consecutive passage length restrictions.
These files are stored in a directory call...
This highlight has been truncated due to consecutive passage length restrictions.
.gitignore—with a dot at the beginning o...
This highlight has been truncated due to consecutive passage length restrictions.
.gitignore
git init
git status
In Git, a branch is a version of the project you’re working
commit is a snapshot of the project at a particular point in time.
git add .
Making a Commit
git commit -m "message"
git log
git log --pretty=oneline
git_practice$ git commit -am "Extended greeting."
-a flag tells Git to add all modified files in the repository to the current commit.
The -m flag tells Git to record a message in the log for this commit.
git status
instead of committing the change, we want to revert back
The command git checkout allows you to work with any previous commit.
out any commit in your log, not just the most recent, by including the first six characters of the reference ID

