/djanjo

Robust django config template

Primary LanguagePythonGNU General Public License v2.0GPL-2.0

Robust django template

Setting up environment

mkvirtualenv [venv-name] -p python3
pip install pip --upgrade
pip install -r requirements.txt

Working with virtualenvs

Django Configs

A custom setting system based on http://justcramer.com/2011/01/13/settings-in-django/ (Archived version)
This enable us to easily maintain multiple environments (e.g.: dev, stage, production, etc)
Environments can set by env var: DJANGO_DEPLOY_ENV (e.g.: export DJANGO_DEPLOY_ENV=prod will load prod.py)

All configurations will be loaded from siteconfig/{env}.py heavely inheriting from siteconfig/defaults.py

Starting project

  • Rename project name (currently: 'compass') to the choosed one.
    Little help:
find . -name '*compass*'  | grep compass && grep 'compass' -riI . --exclude-dir=.git
  • Review configurations

  • Start working!