This is the geodjango web-GIS course tutorial.
You can buy the course through this link: udemy web-GIS
Checkout my all the course on udemy here: https://www.udemy.com/user/tek-bahadur-kshetri/
The coupon code WEBGIS will provide you the course on disconted price.
git clone https://github.com/iamtekson/geodjango-app.git
cd geodjango-app
Make sure to change the database connection parameters from geoProject/settings.py
file,
DATABASES = {
'default': {
'ENGINE': 'django.contrib.gis.db.backends.postgis',
'NAME': 'geoapp',
'USER': 'postgres',
'PASSWORD': 'admin',
'HOST': 'localhost',
'PORT': '5432',
}
}
For the geoserver installation in windows, watch this video, For ubuntu installation follow this tutorial
In windows the gdal can be installed by following method;
# Gdal installations
pip install pipwin
pipwin refresh
pipwin install gdal
In Ubuntu, the gdal can be installed by following method;
sudo apt install -y gdal-bin libgdal-dev libgeos-dev libproj-dev
pip install pygdal=="`gdal-config --version`.*"
Install geopandas and geoserver-rest manually by following there official documentation.
Now you can install the other dependencies as mentioned in requirements.txt
# Other dependencies
pip install -r requirements.txt
python manage.py makemigrations
python manage.py migrate
python manage.py collectstatic
Create the django superuser
python manage.py createsuperuser
Now you can run the django server using following command,
python manage.py runserver
Now your site will be running in this url: http://localhost:8000/
For the deployment of this web-GIS you can check this blog in dev.to Web-GIS Deployment in Ubuntu server (Nginx + Tomcat + PostGIS)
If you liked my work, show some ❤️ by ⭐ repo.
Also you can appreciate by