-
Install GDAL Globally if cannot install inside pipenv
-
Install Depedencies
pipenv install -
Start pipenv
pipenv shell -
Exit pipenv
exit -
Check if in pipenv
echo $PIPENV_ACTIVE -
Install new depedency
pipenv install package_name -
Check depedencies
pipenv graph
- Must go inside PIPENV Shell
- Run project
python manage.py runserver - DB Migration
python manage.py migrate - Create module
python manage.py startapp module_name - Create superuser
python manage.py createsuperuser- username : superuser
- email : superuser@localhost.com
- password : #Abcd1234
- python manage.py makemigrations batas_wilayah
- python manage.py migrate
- When install package using pipenv, the vscode won't find the import. Change the python source to pipenv. Or install the package using pip instead of pipenv
- Test API
http://localhost:8000/api/worldborders/100/?format=json
- Login
- Click
Stores - Add new Store -> PostGIS
- host use
docker-name, save - Click
Layers - Add new layer, from PostGIS
- Choose the table