skip to navigation
skip to content

DjangoSkel 0.1.3

Django project skeleton

Downloads ↓

This package provides a Django project skeleton. It creates a new Django project, set and ready for deployment. Basic usage:

djangoskel <path/to/newproject> --project <project_name> --app <app_name>

Installation

DjangoSkel uses distribute for packaging. Just run:

python setup.py install

Features

  • Creates a Django 1.3.* project, with apps decoupled to a separate apps directory.
  • Adds South.
  • Puts dependencies in a requirements.txt file for pip.
  • Creates WSGI and VHost templates.
  • Provides a Fabric deployment script. It creates and uploads a tarball from the current git branch, so it only works if the project is managed with git.

Quick start

After running:

djangoskel <path/to/newproject> --project=<project_name> --app=<app_name>

there will be a new django project under <path/to/newproject> named <project_name> with one application called <app_name>. You can give deployment a test ride, by running from the project dir:

git init; git add .; git commit -m 'initial commit'
fab localhost setup

If everything goes well, a test-deployment directory should appear, with a .vhost file ready for feeding to Apache.

For each new server you'll need to:

  • add the server configuration to fabfile.py
  • fab <server_name> setup for first deployment
  • fill out localsettings.py on the server (always re-deploy to apply)
  • symlink the .vhost file to Apache's sites-enabled (or copy to sites-available, edit and symlink, as the default file will be overwritten on the next deployment) and reload
  • re-deploy with fab <server_name> deploy

Dependencies

Server-side dependencies

Authors

 
File Type Py Version Uploaded on Size # downloads
DjangoSkel-0.1.3.tar.gz (md5) Source 2011-09-20 28KB 432
  • Author: Radek Czajka
  • Home Page: https://github.com/yappari/djangoskel
  • License:
    Copyright (c) 2011, Radek Czajka
    All rights reserved.
    
    This file is part of DjangoSkel.
    
    DjangoSkel is free software: you can redistribute it and/or modify
    it under the terms of the GNU Affero General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.
    
    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU Affero General Public License for more details.
    
    You should have received a copy of the GNU Affero General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
  • Package Index Owner: Radek.Czajka
  • DOAP record: DjangoSkel-0.1.3.xml