Skip to content

iamtekson/geodjango-from-dev-to-deployment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

75 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:https://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".

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published