2010-03-26 20:14:53 +00:00
|
|
|
===================
|
|
|
|
Deploying GeoDjango
|
|
|
|
===================
|
|
|
|
|
2012-06-28 11:42:36 +00:00
|
|
|
Basically, the deployment of a GeoDjango application is not different from
|
|
|
|
the deployment of a normal Django application. Please consult Django's
|
|
|
|
:doc:`deployment documentation </howto/deployment/index>`.
|
|
|
|
|
2010-03-26 20:14:53 +00:00
|
|
|
.. warning::
|
|
|
|
|
|
|
|
GeoDjango uses the GDAL geospatial library which is
|
|
|
|
not thread safe at this time. Thus, it is *highly* recommended
|
2011-08-13 11:58:19 +00:00
|
|
|
to not use threading when deploying -- in other words, use an
|
|
|
|
appropriate configuration of Apache or the prefork method
|
2010-10-09 08:12:50 +00:00
|
|
|
when using FastCGI through another Web server.
|
2010-03-26 20:14:53 +00:00
|
|
|
|
2012-06-28 11:42:36 +00:00
|
|
|
For example, when configuring your application with ``mod_wsgi``,
|
|
|
|
set the ``WSGIDaemonProcess`` attribute ``threads`` to ``1``, unless
|
2010-08-28 02:40:57 +00:00
|
|
|
Apache may crash when running your GeoDjango application. Increase the
|
2010-03-26 20:14:53 +00:00
|
|
|
number of ``processes`` instead.
|