This project includes :
- Command for renaming project
- Bash script of gdal and psycopg2 installation
- Postgres database enabled django project
- Location as sample model and leaflet configuration for django admin
- Django-restframework-GIS with sample model and Geojson API view
sudo apt-get install python3
sudo apt-get install -y python3-pip
sudo apt install python3-virtualenv
virtualenv myenv
source ./myenv/bin/activate
git clone https://github.com/itskshitiz321/geodjangotemplate.git
chmod +x library.sh
./library.sh
ogrinfo --version
Change the GDAL verision in requirements.txt if your installed version is different from default one (gdal version can be checked from previous command ogrinfo--version
pip install -r requirements.txt
https://www.enterprisedb.com/downloads/postgres-postgresql-downloads
chmod +x ./postgresql-10.14-1-linux-x64.run
sudo ./postgresql-10.14-1-linux-x64.run
python manage.py rename <your_current_projectname> <new_project_name>
eg:python manage.py rename djangoproject newproject
python manage.py makemigrations
python manage.py migrate
python manage.py runserver
conda env create -f environment.yml