Welcome to Places’s documentation!¶
places is a django app (using geodjango) that allow you to manage geo-localized places.
Contents:
Installation & Setup¶
Installation¶
For the moment, the project is in beta mode with no releases. To install you
will need to use the --editable
option of pip
pip install -e https://github.com/jibaku/places.git#egg=places
Or you can go to the github page to
checkout the project and run python setup.py install
.
Setup¶
Add
places
to yoursettings.INSTALLED_APPS
.Sync the database:
python manage.py syncdb
Views¶
-
()
Managers¶
-
PlaceManager.
for_site
()¶ Return the places related to the current site or the site whom ID is passed as the site_id parameter.
-
PlaceManager.
public
()¶ Return the public places (by default for the current website, or for the site whose ID is passed as site_id parameter)
-
PlaceManager.
for_user
()¶ Return the places for the user passed as parameter. It’s the public places and the user private places.