Git Product home page Git Product logo

example-geo-django's Introduction

GeoDjango + Postgis

Python Django Dengan Postgre and Postgis Topology + Sample Data Spatial.

TOOLS YANG DIBUTUHKAN :

  1. install Python 3.7 dari (https://www.python.org/downloads/)
  2. install PosgreSQL dan Postgis dari (https://www.enterprisedb.com/downloads/postgres-postgresql-downloads) catatan : Saya Menggunakan Postgre dan Postgis 9.6.12
  3. install psycopg2 (untuk menghubungkan Django dan Postgis)
  4. install OsGeo dari (https://trac.osgeo.org/osgeo4w/) Pilih yang windowns instaler 32 / 64 bit

SETTING

  1. Pull Repository ini.
  2. setelah install OsGeo, Pastikan Settingan file settings.py dalam folder project sama dengan Path OsGeo yang kamu install di komputermu
    OSGEO4W = r"C:\OSGeo4W"
     if '64' in platform.architecture()[0]:
         OSGEO4W += "64"
     assert os.path.isdir(OSGEO4W), "Directory does not exist: " + OSGEO4W
     os.environ['OSGEO4W_ROOT'] = OSGEO4W
     os.environ['GDAL_DATA'] = OSGEO4W + r"\share\gdal"
     os.environ['PROJ_LIB'] = OSGEO4W + r"\share\proj"
     os.environ['PATH'] = OSGEO4W + r"\bin;" + os.environ['PATH']
  3. buat migrasi DB dengan (python manage.py migrate)
  4. pakai migration dengan (python manage.py makemigrations)
  5. Buat Akses Super user (python manage.py createsuperuser) Masukan User, email, password
  6. Cek run project (python manage.py runserver) Default : http://127.0.0.1:8000/

#DEBUG

  1. Jika terjadi debug Periksa Path OsGeo di file settings.py
  2. Cek DB apakah postgis sudah memiliki extension postgis_topology

Regards Michael

example-geo-django's People

Contributors

ekhel avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.