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/activate
Install the dependencies.
cd locationapp/
pip install -r requirements.txt
Migrate model to postGIS DB.
python manage.py migrate
Start the server
python manage.py createsuperuser
python manage.py runserver
Deactivate Python VEnv Afer test
deactivate
Django Admin page
http://127.0.0.1:8000/admin
Django 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