Skip to content

Simple django buildout + virtualenv layout template

Notifications You must be signed in to change notification settings

onjin/django-buildout-template

Repository files navigation

django-buildout-template

Features

  • supervisor - for start & monitoring django processes
  • logrotate - for clear/rotate applications logs
  • auto cron install - supervisor on machine reboot and daily logrotate
  • configurable by 'local.cfg'
    • optional pin egg versions using 'versions.cfg'
    • start prod or dev env with supervisor
  • build for production (with cron install) or for developmen machine (no cron install)

Install

Get it

customize

  • cp local.cfg-dist to local.cfg and edit

build it

  • 'make'' - for help or 'make dev' , 'make prod'

you got

  • ./bin/django-prod syncdb

single run

  • ./bin/django-(prod/dev) runserver

run fcgi processes(es)

  • ./bin/supervisord (-n for no background & debug)
  • ./bin/supervisorctl

add to own project

  • rm -rf .git # remove .git for django-buildout-template
  • git init
  • git add .gitignore buildout.cfg dev.cfg local.cfg-dist Makefile prod.cfg versions.cfg templates REDAME README.html project
  • git commit -m '@init'

About

Simple django buildout + virtualenv layout template

Resources

Stars

Watchers

Forks

Packages