Standard bootstrap project for Django CMS including Twitter Bootstrap and JS libraries.
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.

What's that?

This project contains fully working and integrated version of Django CMS to enable fast start web projects.

What's included?

  1. Twitter Bootstrap - collection of styles and JS enabling fast start with web sites
  2. Backbone.js - JS MVC library
  3. Underscore.js - JS functional programming library
  4. Handlebars.js - JS templating library
  5. Hogan.js - JS templating library, a faster version of Moustache, developed by Twitter
  6. Django Bount - a Python library enabling to easily develop Fabric deployment scripts

How to install?

  1. Create virtualenv

     mkdir site
     virtualenv site/ENV
  2. Create dirs for static and media

     mkdir site/static
     mkdir site/media
  3. Activate virtualenv

     source site/ENV/bin/activate
  4. Install requirements

     sudo pip install REQUIREMENTS
  5. Remote git origin since you will be changing the original project to make you custom application

     git remote rm origin
  6. Init git submodules

     git submodule init
     git submodule update

How to configure?

  1. Update "site" directory. Site directory is used to store Sqlite data file, static files, user uploaded media files. By default it's ROOT/site but it could be changed by editing the following line in src/

     SITE_PATH = PROJECT_PATH.joinpath('site')
  2. Create local settings file.

    In this project we have different settings for local and production. In this approach all settings files you use import all information from

    For example:

     from settings_common import *

    For production specific settings you can use Since your project could be shared between multiple developers it makes sense for each developer to have a specific settings file for his local machine. To do so I recommend to have that contains recommended local settings and create for each developer (excluding it from git to avoid overwriting). Here are the steps to do it:

  • Edit and commit it to git.

  • Create a copy of

      cp src/ src/
  • Edit src/ to enable your database configuration

  • Add /src/ to .gitignore

    In this configuration approach you also need to make sure you are using right configuation file in production. You can do it by either renaming to during the deployment or specify DJANGO_SETTINGS_MODULE when using to launch your applicatiion or performing management commands.

  1. If you don't want to use separate local and production settings just rename to and delete other settings. In this case you also will need to add database configuration to

  2. Create database schema:

     cd src
     ./ syncdb --all
     ./ migrate --fake

Some things to consider

  • Django root is located in the src subfolder
  • You must choose what approach to use for configuration files: single or multiple files to have separate configurations for each developer and production server.
  • You need to compile LESS files: /less/django-cms-bootstrap.less should be compiled to /compiled/css-compiled/django-cms-bootstrap.css. You can also add your own LESS files and compile them as well. As an alternative you can add your own styles to /less/django-cms-bootstrap.less

What's next?

No user application are created. So you probably could start from creating you application in src folder. Another option is to start creating CMS pages.

Reporting errors

If you find any errors or difficulties please mail me at mturilin (at) I will be happy to help.