A django app for store places
Project description
=============================
django-places
=============================
.. image:: https://badge.fury.io/py/dj-places.png
:target: https://badge.fury.io/py/dj-places
.. image:: https://travis-ci.org/oscarmcm/dj-places.png?branch=master
:target: https://travis-ci.org/oscarmcm/django-places
A django app for store places with autocomplete and a related map
Quickstart
----------
Install dj-places and add it to your installed apps::
$ pip install dj-places
INSTALLED_APPS = (
...
'djplaces',
...
)
Add in your project settings the following values::
JQUERY_URL = '//ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js'
GEOCOMPLETE_URL = '//cdnjs.cloudflare.com/ajax/libs/geocomplete/1.7.0/jquery.geocomplete.min.js'>
GOOGLE_PLACES_URL = '//maps.googleapis.com/maps/api/js?libraries=places''
Then use it in a project::
from djplaces.fields import LocationField
place = models.CharField(max_length=250)
location = LocationField(base_field='place')
TODO-LIST
--------
* [ ] Write some test ASAP!
* [ ] Support Inline Admin
* [ ] Use Django Admin Jquery
* [ ] Set custom zoom map value
* [ ] Custom property for lat and lng values
Running Tests
--------------
Does the code actually work?
::
source <YOURVIRTUALENV>/bin/activate
(myenv) $ pip install -r requirements-test.txt
(myenv) $ python runtests.py
Credits
---------
Special thanks to [Helmy Giacoman](https://github.com/eos87) for motivating me to make this package.
Tools used in rendering this package:
* Cookiecutter_
* `cookiecutter-djangopackage`_
* jquery-geocomplete_
.. _Cookiecutter: https://github.com/audreyr/cookiecutter
.. _`cookiecutter-djangopackage`: https://github.com/pydanny/cookiecutter-djangopackage
.. _jquery-geocomplete_: https://github.com/ubilabs/geocomplete
History
-------
1.0.0 (2016-04-28)
++++++++++++++++++
* First release on PyPI.
django-places
=============================
.. image:: https://badge.fury.io/py/dj-places.png
:target: https://badge.fury.io/py/dj-places
.. image:: https://travis-ci.org/oscarmcm/dj-places.png?branch=master
:target: https://travis-ci.org/oscarmcm/django-places
A django app for store places with autocomplete and a related map
Quickstart
----------
Install dj-places and add it to your installed apps::
$ pip install dj-places
INSTALLED_APPS = (
...
'djplaces',
...
)
Add in your project settings the following values::
JQUERY_URL = '//ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js'
GEOCOMPLETE_URL = '//cdnjs.cloudflare.com/ajax/libs/geocomplete/1.7.0/jquery.geocomplete.min.js'>
GOOGLE_PLACES_URL = '//maps.googleapis.com/maps/api/js?libraries=places''
Then use it in a project::
from djplaces.fields import LocationField
place = models.CharField(max_length=250)
location = LocationField(base_field='place')
TODO-LIST
--------
* [ ] Write some test ASAP!
* [ ] Support Inline Admin
* [ ] Use Django Admin Jquery
* [ ] Set custom zoom map value
* [ ] Custom property for lat and lng values
Running Tests
--------------
Does the code actually work?
::
source <YOURVIRTUALENV>/bin/activate
(myenv) $ pip install -r requirements-test.txt
(myenv) $ python runtests.py
Credits
---------
Special thanks to [Helmy Giacoman](https://github.com/eos87) for motivating me to make this package.
Tools used in rendering this package:
* Cookiecutter_
* `cookiecutter-djangopackage`_
* jquery-geocomplete_
.. _Cookiecutter: https://github.com/audreyr/cookiecutter
.. _`cookiecutter-djangopackage`: https://github.com/pydanny/cookiecutter-djangopackage
.. _jquery-geocomplete_: https://github.com/ubilabs/geocomplete
History
-------
1.0.0 (2016-04-28)
++++++++++++++++++
* First release on PyPI.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
dj-places-1.0.0.tar.gz
(5.1 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file dj-places-1.0.0.tar.gz.
File metadata
- Download URL: dj-places-1.0.0.tar.gz
- Upload date:
- Size: 5.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a49f50bbc792da58d813a02fbd9ccd9e6354fcd8146a06e179dc956dab647a28
|
|
| MD5 |
893afc304309855835a34c615f7a643b
|
|
| BLAKE2b-256 |
513bbfff888b75f117d9d6a521681102594fff88ba36df085319406879675e8a
|
File details
Details for the file dj_places-1.0.0-py2.py3-none-any.whl.
File metadata
- Download URL: dj_places-1.0.0-py2.py3-none-any.whl
- Upload date:
- Size: 6.3 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
603e4f078d0471c06e3aa2ff9e088678739ba366737fee02e9faa22468ed7231
|
|
| MD5 |
8f62cc7be654aa8eea0f1ca08ec2fc12
|
|
| BLAKE2b-256 |
3e6560b922531f67221ec514e7a27ef8b7eb4d007f449a274aa47b7444cc1d49
|