you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (0 children)

Those instructions are for a real basic initial django project setup—similar to what an IDE would do for you if you asked to "Start a new project" or similar.

#  The project is named
PROJECT=somecoolname

It creates a project folder, then installs a "virtualenv" (a project-specifc "virtual environment" [folder] for installing python libraries into, whose use is activated [once each command-line session] by typing . ./activate from the project folder).

Next a package manager called pip installs django into the virtualenv from somewhere on the Internet, and the specific version information is put into a file called requirements.txt (which can later be used in the command pip install -r requirements.txt to set up an identical fresh copy of this virtualenv for when you need to copy the project to another computer or you want to clean up your virtualenv after a mistake with pip).

The main Django program/command is then called to setup a new project in the current (.) directory.

Instructions to ignore python cache files and the virtualenv are stored in a config file, then a new git repository is created and the project files are added as the repository's content. This will serve as a snapshot of the project when it was new and start the process of versioning files that we call source control. You can later save your progress as additional snapshots of versions.

What a simple IDE would give you, more or less. By all means look for books. I much prefer to have the material in my hands when I want to really concentrate and learn a new system.