| | 103 | |
|---|
| | 104 | ********************************************************************* |
|---|
| | 105 | Should you wish to deploy your Django application directly instead of |
|---|
| | 106 | through `manage.py` this could be easily achieved. Just remember to |
|---|
| | 107 | daemonize the script used to launch the interpreter in the relevant |
|---|
| | 108 | `information source`. |
|---|
| | 109 | |
|---|
| | 110 | This is done adding the appropriate parameter to the `runfastcgi` |
|---|
| | 111 | method of `django.core.servers.fastcgi` in your script. |
|---|
| | 112 | |
|---|
| | 113 | .Using a unix socket: |
|---|
| | 114 | ---- |
|---|
| | 115 | from django.core.servers.fastcgi import runfastcgi |
|---|
| | 116 | |
|---|
| | 117 | runfastcgi(method="threaded", daemonize="true", maxrequests=5, |
|---|
| | 118 | protocol="scgi", socket="/tmp/cherokee-django.socket", |
|---|
| | 119 | pidfile="/tmp/cherokee-django.pid") |
|---|
| | 120 | ---- |
|---|
| | 121 | |
|---|
| | 122 | .Using a host:port configuration: |
|---|
| | 123 | ---- |
|---|
| | 124 | from django.core.servers.fastcgi import runfastcgi |
|---|
| | 125 | |
|---|
| | 126 | runfastcgi(method="threaded", daemonize="true", maxrequests=5, |
|---|
| | 127 | protocol="scgi", host="127.0.0.1", port=3033) |
|---|
| | 128 | ---- |
|---|
| | 129 | ********************************************************************* |
|---|