iamtekson / geodjango-from-dev-to-deployment

This is the repo for the course: "Web mapping and Web-GIS from Dev to Deploy 2021: GeoDjango".

Home Page:https://www.udemy.com/course/web-mapping-and-web-gis-from-dev-to-deploy-2021-geodjango/?couponCode=WEBGIS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Documentation

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.

Getting start with this project

Download the project
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',
    }
}
Installation of geoserver

For the geoserver installation in windows, watch this video, For ubuntu installation follow this tutorial

Installation of dependencies

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
Run server

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/

Deployment in ubuntu server guide

For the deployment of this web-GIS you can check this blog in dev.to Web-GIS Deployment in Ubuntu server (Nginx + Tomcat + PostGIS)

Appreciate:

If you liked my work, show some ❤️ by ⭐ repo.

Also you can appreciate by

Buy Me A Coffee PayPal Logo

About

This is the repo for the course: "Web mapping and Web-GIS from Dev to Deploy 2021: GeoDjango".

https://www.udemy.com/course/web-mapping-and-web-gis-from-dev-to-deploy-2021-geodjango/?couponCode=WEBGIS


Languages

Language:JavaScript 50.4%Language:CSS 36.9%Language:Python 7.3%Language:HTML 4.8%Language:Scheme 0.5%