Skip to content

brenoarosa/djanjo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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!

About

Robust django config template

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages