Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/d3rrick/django-leaflet-app
https://github.com/d3rrick/django-leaflet-app
Last synced: 20 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/d3rrick/django-leaflet-app
- Owner: d3rrick
- Created: 2018-06-03T20:40:58.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-08T02:08:47.000Z (about 2 years ago)
- Last Synced: 2023-03-07T14:25:37.426Z (almost 2 years ago)
- Language: JavaScript
- Size: 5.45 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# A simple Django Leaflet project Demo
## Description
### This app illustrates usage of django-leaflet plugin to create a app that uses location.
## Installation Instructions
+ Clone the project.
+ Run ```pip3 install requirements.txt```
+ install postgres and postgis package to add spatial capability to postgres.
+ Intall both follow this [tutorial](https://www.gis-blog.com/how-to-install-postgis-2-3-on-ubuntu-16-04-lts/).
+ If postgresql is already installed, run ```sudo apt-get update && sudo apt-get install postgis ```
+ Create a database eg *gisdb* in the *psql shell* ```psql -d gisdb ```
+ Then execute ```gisdb=#CREATE EXTENSION postgis; ``` and also followed by ```gisdb=#CREATE EXTENSION postgis_topology; ```
##### With this all is set.
+ Execute ```python manage.py makemigrations``` followed by ```python manage.py migrate ```
+ Run serve by ```python manage.py runserver```** NB ENSURE DATABASE YOU CREATE MATCHES WITH DATABASE NAME IN settings.py FILE **