Skip to content
This repository


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Basic bootstrap for Django. Include twitter-bootstrap

branch: master


Django-bootstrap is a empty base project to use with Django. It includes twitter-bootstrap and few utilities to make starting a django project a bit more structured.


  1. Create a virtual enviroment for your project. By default, the settings assume the virtualenv is the parent directory of the project.

virtualenv --no-site-packages my_project

  1. Go into your virtualenv

cd my_project

  1. Now clone the repo with git clone git:// my_project.

Your project should be in my_project/my_project

  1. In the virtualenv directory create you static and media directories

mkdir static mkdir media

  1. Go into the directory when you cloned Django-bootstrap and remove the remote

git remote rm origin

Now you can add your own origin.

  1. Copy to and add admins, site_id, secret_key and whatever else you want not included in your repo.

  2. Now edit settings/ to setup your production database and whatever else is unique to your production environment. Same for settings/, but it's defaults should be suitable for most local development.

  3. Same with settings/


Provided are and devserver. These are wrappers that will use settings.development as your settings file. settings.development uses sqlite and placed db/dev.db in the directory above your project (the same one that has static and media directories. So make sure that directory exists.


Whatever you're using for production, it will need to use settings.production instead of settings.

Something went wrong with that request. Please try again.