Skip to main content

Buildout recipe for Djangohosting.ch

Project description

Description

This buildout recipe can be used setup a Django project and to deploy it using djangohosting.ch hosting services.

Supported options

The recipe supports the following options.

project

This option sets the name for your project. The recipe will create a basic structure if the project is not already there.

version

The version argument can accept a few different types of arguments. You can specify trunk. In this case it will do a checkout of the Django trunk. Another option is to specify a release number like 0.96.2. This will download the release tarball. Finally you can specify a full svn url (including the revision number). An example of this would be http://code.djangoproject.com/svn/django/branches/newforms-admin@7833.

django-wc-path

Path the working copy of the Django project (trunk, tags and branches included). /usr/share/django by default. When using a checkout of django (instead of release tarball), the recipe will first try to it copy from djangohosting.ch working copy.

settings

You can set the name of the settings file which is to be used with this option. This is useful if you want to have a different production setup from your development setup. It defaults to development.

media-url

Value of MEDIA_URL Django settings. Defaults to /media/

media-directory

Value of MEDIA_ROOT Django settings. Defaults to a media in the project directory.

admin-media-url

Value of ADMIN_MEDIA_PREFIX Django settings. Defaults to /admin_media/

admin-media-directory

Used to create an alias in a lighttpd configuration file. Defaults to the media folder in the admin’s Django folder.

(init|lighttpd|private|public-html)-directory

Path (absolute or relative) to the init, lighttpd, private and public_html directories. Defaults init, lighttpd, private and public_html.

lighttpd-bin

Path to lighttpd executable. Defaults to /usr/local/sbin/lighttpd

host

Host of production server. Required.

port

Port of production server. Required.

development-host

Host of development server. Defaults to localhost.

development-port

Port of development server. defaults to 8000.

download-cache

Set this to a folder somewhere on you system to speed up installation. The recipe will use this folder as a cache for a downloaded version of Django.

extra-paths

All paths specified here will be used to extend the default Python path for the bin/* scripts.

test

If you want a script in the bin folder to run all the tests for a specific set of apps this is the option you would use. Set this to the list of app labels which you want to be tested.

testrunner

This is the name of the testrunner which will be created. It defaults to test.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

djangohosting-recipe-0.1.0a4.tar.gz (9.1 kB view details)

Uploaded Source

File details

Details for the file djangohosting-recipe-0.1.0a4.tar.gz.

File metadata

File hashes

Hashes for djangohosting-recipe-0.1.0a4.tar.gz
Algorithm Hash digest
SHA256 aebff613712e624fccdc9fdcc64231537d4ef1bb93ebe26c536368204d22975d
MD5 3631f5c54929162988d0cd75d09a5a1a
BLAKE2b-256 99889fefddb1347232b74ec19e3f44c8fda02aab2e012652c36795ce0eba2913

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page