A simple demo site and REST API for below features.
- Address normalization, geocode / reverse geocode, etc.
- admin page
- Swagger API doc and test
- user register, login, logout
- location GIS Point CRUD
- JWT authentication and token refresh
- devconatiner config with postGIS backend on Docker Desktop with WLS2
- It is a Development version that use HTTP. Production version should use HTTPS
- Production version should disable swagger / Django REST API tester
- Swagger API doc and test
Install and Activate Python VEnv
python3 -m venv venv
source venv/bin/activateInstall the dependencies.
cd locationapp/
pip install -r requirements.txtMigrate model to postGIS DB.
python manage.py migrateStart the server
python manage.py createsuperuser
python manage.py runserverDeactivate Python VEnv Afer test
deactivateDjango Admin page
http://127.0.0.1:8000/adminDjango REST test page
http://127.0.0.1:8000/locations/Swagger UI
http://127.0.0.1:8000/docs/- DRF CRUD + JWT tutorial
- Set default lat for GISModelAdmin
- Customize admin display
- DRF Swagger
- GeoDjango GIS postGIS App using REST API
- GeoDjango Tutorial
MIT