项目作者: AnmolChachra

项目描述 :
Create and manage your own location data. Easily configure your maps from your project's settings
高级语言: Python
项目地址: git://github.com/AnmolChachra/django-location-app.git
创建时间: 2021-03-16T21:21:11Z
项目社区:https://github.com/AnmolChachra/django-location-app

开源协议:MIT License

下载


django-location-app

A Django app that helps you easily create and manage your own location data. Simply get a google maps api key and configure your maps directly from your django project’s settings. Map comes with autocomplete functionality and saves your location to a completely normalized location database. See below for ORM diagram

Quickstart

Install django-location-app available on pypy and add it to your INSTALLED_APPS in your project’s settings.py file

  1. pip install django-location-app
  2. INSTALLED_APPS = (...
  3. 'location_app',
  4. ...
  5. )

Get your Google MAPS API key from here and add it to the settings. It is always a good idea to store the key as an environment variable and access via os.environ.get(<name>). Learn more

  1. LOC_APP_MAPS_API_KEY = XXXXXXXXXXXXXXXXXXXXXX

To see if installation was successful, add the following to your project’s urls.py file

  1. from django.urls import path, include
  2. urlpatterns += [path('location/', include("location_app.urls")),]

If in dev, visit http://localhost:[Port]/location/ and you should see the following UI

https://user-images.githubusercontent.com/22666819/111712391-ead51c80-8823-11eb-96a3-9eb55f3cbe4c.mp4

ORM

image