lincolnloop / django-startproject

Boilerplate code for new Django projects.

This URL has Read+Write access

name age message
file .gitignore Tue Sep 15 13:43:49 -0700 2009 Non-atomic checkin: everything should be workin... [Chris Beaven]
file README Tue Nov 24 07:34:49 -0800 2009 Add a readme file for this app [Chris Beaven]
directory bin/ Tue Sep 15 13:43:49 -0700 2009 Non-atomic checkin: everything should be workin... [Chris Beaven]
directory django_startproject/ Thu Dec 17 15:40:23 -0800 2009 Uses pre-existing django-staticfiles instead of... [lincolnloop]
file setup.py Tue Nov 24 07:35:07 -0800 2009 Make the setup.py file use the README contents ... [Chris Beaven]
README
============
StartProject
============

StartProject installs a script which allows the easy creation of a standard
Django project layout based on Lincoln Loop standards.


Script usage
============

After installing StartProject, simply run the following command (from within
the directory in where the new project directory should be created)::

  django-startproject.py project_name

The script will prompt for values to replace boilerplate variables with. These
variables allow for both the file contents and path names to be customized to
this specific project.


Using a custom project template
===============================

If you would prefer to use a custom project template than the one included in
this application, create your custom project template directory and call the
command script like this::

    django-startproject.py --template-dir=/your/custom/template project_name


Specifying boilerplate variables
--------------------------------

Two optional files in the root of the project template directory are used to
determine the boilerplate variables:

``.startproject_boilerplate``
  Each line should contain the boilerplate variable (and optionally, a
  description of the variable, separated from the variable by white space).

``.startproject_defaults``
  Each line should contain a variable and the default value, separated by
  whitespace. If the default value contains ``PROJECT``, it is replaced with
  the project name.

See the files included in the project_template directory of StartProject for
an example.