Skip to content

Commit

Permalink
Fixed #109 -- Changing GeoDjango widgets setup docs to mention the Ge…
Browse files Browse the repository at this point in the history
…oDjango installation instructions and not the django-floppyforms tests to check for successfull installation.
  • Loading branch information
gregmuellegger committed Mar 13, 2015
1 parent ae36671 commit e8d462d
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions docs/geodjango.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,9 @@ and a custom WKT parser/serializer implementing some Django-specific tweaks.
Setting up
----------

To make sure you're ready to use the geographic widgets, add
``'django.contrib.gis'`` to your ``INSTALLED_APPS`` and run the floppyforms
tests (the tests for geographic widgets are skipped if you don't have
``django.contrib.gis`` in ``INSTALLED_APPS``)::

python manage.py test floppyforms

If the tests don't pass, check your GEOS/GDAL installation.
To make sure you're ready to use the geographic widgets, follow the
`installation instructions for GeoDjango`_ closely. You need to have
``'django.contrib.gis'`` in your ``INSTALLED_APPS`` setting.

Next, you need to serve the javascript library provided by django-floppyforms
(located in ``floppyforms/static/floppyforms/js/MapWidget.js``).
Expand All @@ -36,6 +31,8 @@ library will be picked up automatically and gets served by the development
server. Just make sure you run ``manage.py collectstatic`` once you deploy
your project.

.. _installation instructions for GeoDjango: https://docs.djangoproject.com/en/dev/ref/contrib/gis/install/

Widget types
------------

Expand Down

0 comments on commit e8d462d

Please sign in to comment.