In order to run this, you should have:
pip install virtualenvpython -m virtualenv venvdocker run -dit \
--name geoterms \
-e POSTGRES_PASSWORD=password \
-e POSTGRES_USER=app \
-e POSTGRES_DB=geoterms \
-p 54323:5432 \
postgres- Run Docker Desktop
- Run in the powershell
docker run -dit --name geoterms -e POSTGRES_PASSWORD=password -e POSTGRES_USER=app -e POSTGRES_DB=geoterms -p 54323:5432 postgres
python -m virtualenv venv;
source venv/bin/activate;
pip install -r requirements.txt;DJANGO_DEBUG=True DJANGO_TESTING=True python manage.py runserver 8001python -m virtualenv venv
cd venv
cd Scripts
cd ..
cd ..
activate
pip install -r requirements.txt
- Set up the environment variables
- DJANGO_DEBUG=True
- DJANGO_TESTING=True
- Execute
python manage.py runserver 8001- Set up the environment variables
- DJANGO_DEBUG=True
- DJANGO_TESTING=True
- Execute
python manage.py migrate- Run the database
- Run the server
- Create a supuser
python manage.py createsuperuser- Enter http://127.0.0.1:8001/admin using the login and the password of the superuser