welcome: please sign in

Diff for "MemberManual/WebApplications/Django"

Differences between revisions 1 and 4 (spanning 3 versions)
Revision 1 as of 2010-02-13 12:59:54
Size: 144
Editor: NachtDier
Comment:
Revision 4 as of 2010-02-13 15:34:46
Size: 1010
Editor: NachtDier
Comment:
Deletions are marked like this. Additions are marked like this.
Line 2: Line 2:

== Introduction ==

Download the

Follow the instructions on RunningYourOwnApache.
Line 5: Line 11:
Download the latest version from http://apache.org
Line 6: Line 14:

You need to organize a couple of things in the Apache configuration file. First of all, you want an alias for your "favicon.ico". With a static web-site the favicon is in the document root. I prefer the favicon in the same directory as my other static media. Therefore you need an alias for the directory with your static media, as well as an alias for your favicon

{{{
alias /favicon.ico /YOURPROJECT/site_media/favicon.ico
alias /site_media/ /YOURPROJECT/site_media/
}}}
Line 13: Line 29:
== More information ==
 * http://code.google.com/p/modwsgi/wiki/IntegrationWithDjango
Line 16: Line 35:
The application CherryPy is also very good in serving Python applications. CherryPy is also a Web Framework, but you can use it for serving only.

1. Apache

1.1. Introduction

Download the

Follow the instructions on RunningYourOwnApache.

1.2. MOD_WSGI

Download the latest version from http://apache.org

1.3. HTTPD.conf

You need to organize a couple of things in the Apache configuration file. First of all, you want an alias for your "favicon.ico". With a static web-site the favicon is in the document root. I prefer the favicon in the same directory as my other static media. Therefore you need an alias for the directory with your static media, as well as an alias for your favicon

alias /favicon.ico /YOURPROJECT/site_media/favicon.ico
alias /site_media/ /YOURPROJECT/site_media/

2. Django

2.1. WSGI

2.2. Settings.py

2.3. More information

3. Alternatives

3.1. Django_cpserver

The application CherryPy is also very good in serving Python applications. CherryPy is also a Web Framework, but you can use it for serving only.

MemberManual/WebApplications/Django (last edited 2013-01-14 07:17:48 by ClintonEbadi)