-
Install Docker and run
docker-compose up -
Run migrations:
docker-compose exec web python3.9 manage.py makemigrations core
docker-compose exec web python3.9 manage.py migrate
- Create Super User:
docker-compose exec web python3.9 manage.py createsuperuser
- Install
virtualenv(Reference)
python3 -m pip install --user --upgrade pip
python3 -m pip --version
python3 -m pip install --user virtualenv
- Install Prerequisites
brew install postgresql
brew install postgis
brew install gdal
brew install libgeoip
- Create a virtual environment and install dependencies
python3 -m venv env
source env/bin/activate
python3 -m pip install -r requirements.txt
- Start PostgreSQL Server
docker run --name=postgis -d -e POSTGRES_USER=<database-username> -e POSTGRES_PASS=<database-password> -e POSTGRES_DBNAME=<database-name> -p 5432:5432 kartoza/postgis:14-3.2
- Run migrations:
python3 manage.py makemigrations
python3 manage.py migrate
- Start Server
- Create a new file
.envat the root of the project with the contents of.env.examplewith the correct values. - Start Development Server:
python3 manage.py runserver
- Create a new file