Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 45 lines (28 sloc) 1.638 kb
7759752e »
2009-03-19 cook-18 add documentation for django and apache2
1 = DESCRIPTION:
2
3 Installs Python Django package and sets up Apache2 to serve a django application.
4
5 = REQUIREMENTS:
6
7 Opscode cookbooks, http://github.com/opscode/cookbooks/tree/master:
8
9 * python
10 * apache2
11
12 = ATTRIBUTES:
13
a0d318f1 »
2010-07-19 COOK-326, add info about attribute in readme
14 node[:django][:web_server] - set whether to use mod_python or mod_wsgi. Defaults to mod_wsgi because that is the recommended web server strategy to use by the Django creator.
7759752e »
2009-03-19 cook-18 add documentation for django and apache2
15
16 = USAGE:
17
18 Create the django application using the Apache2 cookbook's web_app define. Normally this would be done in a site-cookbook.
19
20 web_app "mysite" do
21 docroot "/srv/mysite"
22 template "mysite.conf.erb"
23 end
24
25 Create the template, 'mysite.conf.erb' within the site-cookbook. Make sure the django settings are correct. The web_app define copies the template over and enables it as an apache2 site.
26
a0d318f1 »
2010-07-19 COOK-326, add info about attribute in readme
27 The Opscode "application" cookbook is going to grow the ability to deploy a Django application from a source repository. This cookbook will be used to get the Django and Apache software installed and ready.
28
7759752e »
2009-03-19 cook-18 add documentation for django and apache2
29 = LICENSE & AUTHOR:
30
31 Author:: Joshua Timberman (<joshua@opscode.com>)
32 Copyright:: 2009, Opscode, Inc
33
34 Licensed under the Apache License, Version 2.0 (the "License");
35 you may not use this file except in compliance with the License.
36 You may obtain a copy of the License at
37
38 http://www.apache.org/licenses/LICENSE-2.0
39
40 Unless required by applicable law or agreed to in writing, software
41 distributed under the License is distributed on an "AS IS" BASIS,
42 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
43 See the License for the specific language governing permissions and
44 limitations under the License.
Something went wrong with that request. Please try again.