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.
- 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
- Go into your virtualenv
- Now clone the repo with
git clone git://github.com/emperorcezar/Django-bootstrap.git my_project.
Your project should be in
- In the virtualenv directory create you static and media directories
- Go into the directory when you cloned Django-bootstrap and remove the remote
git remote rm origin
Now you can add your own origin.
Copy local_settings.py.example to local_settings.py and add admins, site_id, secret_key and whatever else you want not included in your repo.
Now edit settings/production.py to setup your production database and whatever else is unique to your production environment. Same for settings/development.py, but it's defaults should be suitable for most local development.
Same with settings/development.py.
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
media directories. So make sure that directory exists.
Whatever you're using for production, it will need to use settings.production instead of settings.