Skip to content

consideratecode/django-tutorial-step-by-step

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 

Repository files navigation

A step-by-step solution for the official Django tutorial

This repository contains the Django project you build in the official Django tutorial: the mysite project with the polls app.

Each commit corresponds to a step in the tutorial.

If you get stuck while following the tutorial, you can check what your code should look like - right at the step you are currently at.

For further motivation, visit https://consideratecode.com/2017/12/15/django-tutorial-step-by-step

How this repository is structured

There is a tagged commit for each complete code change. The commit message indicated which step of the tutorial the commit refers to.

In most cases, each commit corresponds to the state of your project after a single section or sub-section in the tutorial.

Sometimes, a section contains multiple code changes that you should try one after the other, e.g. the section "Customize the admin change list" in Part 7 corresponds to five commits.

Table of contents:

Here is a list of all steps in the tutorial, linked to the corresponding tag. The name of each tag is shown in brackets.

Part 1:

Part 2:

Part 3:

Part 4

Part 5:

Part 6:

Part 7:

If you want to check out the code at a specific step, simply checkout the tag. E.g. if you are stook in "Part 6: Customize your app’s look and feel", do the following:

$ git clone git@github.com:consideratecode/django-tutorial-step-by-step.git
$ cd django-tutorial-step-by-step
$ git checkout 2.0/6.1

This repository does intentionally not contain:

  • __pycache__ directories containing Python bytecode
  • the file db.sqlite3 containing the SQLite database

Contributing

If you find any mistakes, open an issue or create a pull request. If you are unsure how to do that, drop me an email.

My goal is to stay true to the idea of one commit per step in the tutorial. This means that I will probably have to change tags and branch names if any changes are made.

Author

Daniel Hepper daniel@consideratecode.com

License and Copyright

The code in this repository originates from the Django tutorial, released as part of Django under the Modified BSD License by the Django Software Foundation and individual contributors. My original contribution to this repository is essentionally this README. For the full terms, see LICENSE.

The name "Django" is a registered trademark of the Django Software Foundation. Please note that any references to the official Django tutorial are nominative and should not imply affiliation with or endorsement by the Django Software Foundation.

About

A repository to follow the official Django tutorial step-by-step.

Resources

License

Stars

Watchers

Forks

Packages

No packages published