This is the source code for the Tuts+ series of courses on Django. The master
branch holds the code in it's final position, i.e., as it was at the end of the last episode in the latest course in the series. The other branches are named for the course they represent and hold the code as it was at the end of that particular course. Tags have also been added to allow you to checkout the source as it was at the end of a particular episode.
The source code for the Tuts+ course "Django Unchained"
-
Create a virtual environment for the course and install Django (this course was created with v1.5, so it will definitely work with that version, but all bets are off on future versions of Django).
% mkvirtualenv tutsplus-django % pip install django
-
Get the source code for the course
a. Clone the repository
% git clone https://github.com/croach/tutsplus-django.git % cd tutsplus-django
b. (optional) Checkout the source for a specific course or episode
% git tag # list all tags (one per episode) % git branch -a # list all branches (one per course) % git checkout <branch|tag> # branches are by course, tags by episode
-
Setup the database
% manage.py syncdb # make sure you setup an admin user % python loader.py # populate DB with stories from HN
-
Run it
% manage.py runserver