.env
File
export SECRET_KEY='SECRETO'
export DB_URI='postgres://USER:PASSWORD@HOST:PORT/DB_NAME'
$ docker run -d -p 5432:5432 --name pg-aaaimx-admin -u postgres -e POSTGRES_PASSWORD=postgres postgres
$ source .env
$ source venv/bin/activate
$ chmod +x bin/enstrypoint.sh
$ python manage.py createuseruser
If aaaimx-admin.json
not exists contact a administrator
$ python manage.py dumpdata --all -e admin -e sessions --natural-primary --indent=4 > aaaimx-admin.json
$ python manage.py migrate --run-syncdb
$ python manage.py sqlflush # clean db
$ python manage.py loaddata aaaimx-admin.json
$ python manage.py dumpdata finances --natural-primary --indent=4 > aaaimx-finances.json
Then start project
$ python manage.py runserver
Open browser in http://localhost:8000 Open browser in http://localhost:8000/api