项目作者: hriks

项目描述 :
GeoCoding
高级语言: Python
项目地址: git://github.com/hriks/geocoding.git
创建时间: 2019-08-05T16:22:42Z
项目社区:https://github.com/hriks/geocoding

开源协议:Apache License 2.0

下载


Geocoading

===============================================================================

Setting up development environment

The development environment can be setup either like a pythonista
with the usual python module setup, or like a docker user.

The pythonista way

Ensure that you have an updated version of pip

  1. pip --version

Should atleast be 1.5.4

If pip version is less than 1.5.4 upgrade it

  1. pip install -U pip

This will install latest pip

Ensure that you are in virtualenv
if not install virtual env

  1. sudo pip install virtualenv

This will make install all dependencies to the virtualenv
not on your root

From the module folder install the dependencies. This also installs
the module itself in a very pythonic way.

  1. pip install -r requirements.txt

NOTE

Make Sure you had python3
export the configuration file after setup

  1. export GMAPS_API_KEY=<API KEY>

Before begining you need to migrate tables

Perform migration by

  1. python manage.py makemigrations
  2. python manage.py migrate

and then create a superuser as no user is currently present in the database and apis require authentication(i.e username and password)

  1. Python manage.py createsuperuser

Run app by

  1. python manage.py runserver

Sample excel file