Django Series

Lesson 1: Start

Lesson 2: Git

Lesson 3: MVC

Lesson 4: Forms

Lesson 5: Models

Appendix i: Setup

Appendix ii: Shell

Appendix iii: TDD

Django Tutorial Setup

Github Setup Icon

 

 

This article is an appendix to the other tutorial exercises on the site.

 

Follow these steps to clone my repository from github and make the tutorial setup on your computer. Replace branch “exerciseX” with your current exercise branch.

 
mkdir -p DjangoTutorial/{static,virtualenv,source,database,media}

virtualenv --python=python3 DjangoTutorial/virtualenv/

git clone https://github.com/fozodavid/DjangoTutorial.git --branch exerciseX --single-branch DjangoTutorial/source

cd DjangoTutorial/source

touch MyTutorial/local_settings.py

 

***MyTutorial/local_settings.py***

import os

from MyTutorial.settings import BASE_DIR

 

SECRET_KEY = 'rf@7y-$2a41o+4&z$ki0&=z)(ao=@+$fseu1f3*f=25b6xtnx$'

 

DEBUG = True

 

ALLOWED_HOSTS = []

DATABASES = {

    'default': {

        'ENGINE': 'django.db.backends.sqlite3',

        'NAME': os.path.join(BASE_DIR,'..','database','db.sqlite3'),

    }

}

*** end of MyTutorial/local_settings.py ***

git branch -m exerciseX master

source ../virtualenv/bin/activate

pip install django==1.10

deactivate

 

You are ready to start development.

Tags: tutorial , beginner , django , setup , git , github