Mozambique Proenergia backend.
Start the dev server for local development:
docker-compose upRun a command inside the docker container:
docker-compose run --rm web [command]- Create a PostgreSQL database named
proenergia, and another one namedproenergia_test - Set the environment variables:
export DJANGO_DB_URL="postgis://user:password@localhost:5432/proenergia"
export DJANGO_SECRET_KEY="anyTextIsS3cr3t"
- Install the python dependencies with
pip install -r requirements.txt - To run the server, use
./manage.py runserver - You can create a super user with
./manage.py createsuperuser
GeoDjango may require some additional libraries to be installed in your system, check the documentation or a Docker file in this repository.
To run the tests, use:
DJANGO_DB_URL="postgis://user:password@localhost:5432/proenergia_test" ./manage.py test --settings=proenergia.config.local