2010-03-27 04:14:53 +08:00
|
|
|
===================
|
|
|
|
Deploying GeoDjango
|
|
|
|
===================
|
|
|
|
|
2012-06-28 19:42:36 +08: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-27 04:14:53 +08:00
|
|
|
.. warning::
|
|
|
|
|
|
|
|
GeoDjango uses the GDAL geospatial library which is
|
|
|
|
not thread safe at this time. Thus, it is *highly* recommended
|
2011-08-13 19:58:19 +08:00
|
|
|
to not use threading when deploying -- in other words, use an
|
2014-11-20 01:21:49 +08:00
|
|
|
appropriate configuration of Apache.
|
2010-03-27 04:14:53 +08:00
|
|
|
|
2012-06-28 19:42:36 +08:00
|
|
|
For example, when configuring your application with ``mod_wsgi``,
|
|
|
|
set the ``WSGIDaemonProcess`` attribute ``threads`` to ``1``, unless
|
2010-08-28 10:40:57 +08:00
|
|
|
Apache may crash when running your GeoDjango application. Increase the
|
2010-03-27 04:14:53 +08:00
|
|
|
number of ``processes`` instead.
|