1. Marek Kuziel
  2. django-commands

Overview

README

''django-commands'' is set of custom django commands written by Marek Kuziel <marek@kuziel.info>

List of commands:

  • runcpserver - runs a CherryPy webserver. You need to have CherryPy installed to be able to use it.

= Installation =

  • egg
  • buildout
  • buildout devel
  • django
  • help

== egg ==

build.sh - builds a development egg in dist directory as tar.gz

== buildout ==

[buildout]

find-links =
http://bitbucket.org/vshivak/django-commands/src/tip/pypi/django-commands-0.3.tar.gz
eggs =
CherryPy django-commands

== buildout devel ==

[buildout]

develop =
src/django-commands

== django ==

INSTALLEED_APPS needs 'django_commands' entry.

== help ==

bin/django runcpserver help - read the help.

== configuration (settings.py) ==

{{{ # Import data from local.py (unique settings of the instance) from local import LOCAL_BASE_DIR from local import LOCAL_PORT

# (CherryPy) Deployment of 'example' appliction instance ENV_NAME = 'example' HOST = '127.0.0.1' BASE_DIR = LOCAL_BASE_DIR PORT = LOCAL_PORT PID_FILE = '%s/var/run/%s.pid' % (BASE_DIR, ENV_NAME) ACCESS_LOG = '%s/var/log/access_log' % BASE_DIR ERROR_LOG = '%s/var/log/error_log' % BASE_DIR SERVER_NAME = 'example.com' SERVER_USER = 'example' SERVER_GROUP = 'example' SSL_CERTIFICATE = None SSL_PRIVATE_KEY = None THREADS = 10 DAEMONIZE = True }}}

== gotchas ==

PID_FILE directory MUST exists (ie. /var/run/). ACCESS_LOG and ERROR_LOG directory MUST exist (/var/log/).