Package: django-fab-templates
django-fab-templates is set of start templates for Django projects. All of these templates support automated Django project deployment with help ofFabric. Feel free to use them as is or tweak them to fit your needs.Kudos to:Gareth Rushgrove and hisdjango-project-templatesfor inspirationColin Copeland for his introduction tobasic Django deployment with virtualenv, fabric, pip and rsyncPlease submit bugs and improvements asGitHub issuesor send them todmitry.guyvoronsky@gmail.com.Quick StartHere is quick primer on creation of new Django project (mysql+south+html5boilerplate) that supports deployment to vagrant-managed virtual box.First, install everything:$ pip install django-fab-templates
$ gem install vagrant
$ vagrant box add lucid32 http://files.vagrantup.com/lucid32.boxThen create new Django project, boot and configure vagrant box:$ paster create -t vagrant_project my_project
$ cd my_project
$ vagrant upFinally set up your project on virtual vagrant box and test it:$ fab vagrant setup
$ curl -I http://localhost:8080/FeaturesAll project templates have the following in common:Automated deployment with help ofFabriccommand-line tool is supportedExcellenthtml5 boilerplate templateis used as a base for html+css+jsSQLite and MySQL are used as default db backendsDatabase scheme and data migrations are managed bySouthMultiple configurations (development/staging/production) and local setting overrides are supportedThe following majorfabcommands are supported in all projects:Webserver manipulationapache_restart - Restarts apacheapache_start - Starts apacheapache_stop - Stops apachemaintenance_off - Turn maintenance mode offmaintenance_on - Turn maintenance mode onDatabasecreate_database - Create database and db userdrop_database - Create database and db userpopulate_database - Create initial database scheme and load initial datamigrate - Migrate database scheme and datavagrant_projectThis project template simplifies Django project development and testing on vagrant-managed virtual box. It uses 32-bit Ubuntu 10.04.2 LTS (Lucid Lynx) release (codenamelucid32). Of course you operating system of your choice, just keep in mind you may need to tweak Chef settings inVagrantfile.HintVagrantis an amazing tool for managing virtual machines via a simple to use command line interface. With a simplevagrant upyou can be working in a clean environment based on a standard template. You will need to install vagrant, downloadlucid32box and boot up vagrant by running:$ gem install vagrant
$ vagrant box add lucid32 http://files.vagrantup.com/lucid32.box
$ vagrant init
$ vagrant upPlease refer toGetting Started with Vagrantmanual for details.The followingfabcommands are supported in addition tocommonones:General commandssetup - Setup a fresh virtualenv, install everything we needdestroy_world - Removes everythingExample:$ paster create -t vagrant_project my_project
$ cd my_project
$ vagrant up
$ fab vagrant setupDependenciesdjango-fab-templates requires the following python packages:setuptools- no commentsPasteScript- pluggable command-line frontend, including commands to setup package file layoutsCheetah- a template engine and code generation toolFabric- command-line automation toolJinja2- modern and designer friendly templating language for PythonInstallationFrompypi:$ pip install django-fab-templatesor:$ easy_install django-fab-templatesor clone fromGitHuband install manually:$ git clone git://github.com/dreamiurg/django-fab-templates.git
$ cd django-fab-templates
$ sudo python setup.py installUsageTo see list of available project templates:$ paster create --list-templatesTo generate Django project template:$ paster create -t <template_name> <project_name>