Python Crash Course: A Hands-On, Project-Based Introduction to Programming
Rate it:
74%
Flag icon
version of Python
74%
Flag icon
pip install --user virtualenv
74%
Flag icon
Change to the learning_log
74%
Flag icon
environment set up, we need to activate it with the following command:
74%
Flag icon
learning_log$ source ll_env/bin/activate
74%
Flag icon
When the environment is active, you’ll see the name of the environment in parentheses,
74%
Flag icon
To stop using a virtual environment, enter deactivate:
74%
Flag icon
pip install Django
74%
Flag icon
There’s no need to use the --user flag,
74%
Flag icon
that Django will be available only when the environment is active.
74%
Flag icon
(dir on Windows)
75%
Flag icon
db.sqlite3 learning_log   ll_env   manage.py
75%
Flag icon
ls command shows that Django created another file called db.sqlite3 ➋. SQLite is a
76%
Flag icon
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.
85%
Flag icon
Learning Log is fully functional now, but it has no styling and runs only on your local machine.
90%
Flag icon
$ python --version
91%
Flag icon
Python on Windows
91%
Flag icon
python --version
91%
Flag icon
Adding Python to Your Path Variable
91%
Flag icon
Control Panel,
91%
Flag icon
System and Security,
91%
Flag icon
System. Click Advanced Syste...
This highlight has been truncated due to consecutive passage length restrictions.
91%
Flag icon
Environment Va...
This highlight has been truncated due to consecutive passage length restrictions.
91%
Flag icon
Click Edit.
93%
Flag icon
snapshots
93%
Flag icon
reverting
93%
Flag icon
make mistakes without worrying about ruining your
93%
Flag icon
Git is the most popular version
93%
Flag icon
Ignoring Files
93%
Flag icon
.pyc
93%
Flag icon
we don’t need Git to keep tra...
This highlight has been truncated due to consecutive passage length restrictions.
93%
Flag icon
These files are stored in a directory call...
This highlight has been truncated due to consecutive passage length restrictions.
93%
Flag icon
.gitignore—with a dot at the beginning o...
This highlight has been truncated due to consecutive passage length restrictions.
93%
Flag icon
.gitignore
93%
Flag icon
git init
93%
Flag icon
git status
93%
Flag icon
In Git, a branch is a version of the project you’re working
94%
Flag icon
commit is a snapshot of the project at a particular point in time.
94%
Flag icon
git add .
94%
Flag icon
Making a Commit
94%
Flag icon
git commit -m "message"
94%
Flag icon
git log
94%
Flag icon
git log --pretty=oneline
94%
Flag icon
git_practice$ git commit -am "Extended greeting."
94%
Flag icon
-a flag tells Git to add all modified files in the repository to the current commit.
94%
Flag icon
The -m flag tells Git to record a message in the log for this commit.
94%
Flag icon
git status
94%
Flag icon
instead of committing the change, we want to revert back
94%
Flag icon
The command git checkout allows you to work with any previous commit.
94%
Flag icon
out any commit in your log, not just the most recent, by including the first six characters of the reference ID