/django-tutorials

Simple app to base various Django tutorial talks off of.

Primary LanguagePython

Tutorials Django Project

Prerequisites

  • python >= 2.5
  • pip
  • virtualenv/wrapper (optional)

Installation

Creating the environment

Create a virtual python environment for the project. If you're not using virtualenv or virtualenvwrapper you may skip this step.

For virtualenvwrapper

mkvirtualenv --no-site-packages tutorials-env

For virtualenv

virtualenv --no-site-packages tutorials-env
cd tutorials-env
source bin/activate

Clone the code

Obtain the url to your git repository.

git clone <URL_TO_GIT_RESPOSITORY> tutorials

Install requirements

cd tutorials
pip install -r requirements.txt

Configure project

cp tutorials/__local_settings.py tutorials/local_settings.py
vi tutorials/local_settings.py

Sync database

python manage.py syncdb

Running

python manage.py runserver

Open browser to http://127.0.0.1:8000