Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>To enable easy Django deployement I would to the following:</p> <p><strong>Fisrt-time server configuration</strong></p> <ul> <li>Install <a href="http://code.google.com/p/modwsgi/" rel="nofollow noreferrer">mod_wsgi</a> which allow you to run in <em>embedded</em> mode OR in <strong>daemon</strong> mode.</li> <li>Install python and <a href="http://pypi.python.org/pypi/virtualenv" rel="nofollow noreferrer">virtualenv</a></li> </ul> <p><strong>In your development environment</strong></p> <ul> <li>Use virtualenv. Take a look at <a href="http://code.google.com/p/modwsgi/wiki/VirtualEnvironments" rel="nofollow noreferrer">mod_wsgi and virtualenv configuration</a></li> <li>Install Django your django version (using python setup.py install)</li> <li>Install your python libs</li> <li>Develop your project</li> </ul> <p><strong>Every time you want to deploy</strong></p> <ul> <li>Copy your virtual environment to the production server</li> <li>Just add an Include directive in your httpd.conf file (or use .htaccess) to your project's apache configuration. As stated in <a href="http://code.google.com/p/modwsgi/wiki/IntegrationWithDjango" rel="nofollow noreferrer">mod_wsgi integration with django</a> documentation, one example of how Apache included file could be configured would be:</li> </ul> <p><code></p> <pre><code>Alias /media/ /usr/local/django/mysite/media/ &lt;Directory /usr/local/django/mysite/media&gt; Order deny,allow Allow from all &lt;/Directory&gt; WSGIScriptAlias / /usr/local/django/mysite/apache/django.wsgi &lt;Directory /usr/local/django/mysite/apache&gt; Order deny,allow Allow from all &lt;/Directory&gt; </code></pre> <p></code></p> <p><strong>Automating deployement</strong></p> <ul> <li>I would consider using <a href="http://www.nongnu.org/fab/" rel="nofollow noreferrer">Fabric</a> to automate deployement</li> </ul>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload