Update: 2/1/2019: Support for dockerized container added.
- Install docker/docker-compose
- copy env.example to .env
- In project root do
docker-compose build
- Once built, migrate:
docker-compose run app migrate
- Bring stack up:
docker-compose run app migrate
- Django Shell:
docker-compose run app python proj/manage.py shell
- DB Migrate:
docker-compose run app python proj/manage.py migrate
- Run management Command:
docker-compose run app python proj/manage.py <COMMAND>
- In Project -> Project Interpreter set Project Interpreter to Docker.
- Build, Execution, Deployment -> Docker -> Add A docker environment.
- For Debug: Add: Run -> Edit Configurations; Edit your configuration to use docker.
- If configuration doesn't work with django server, just do it as a python command proj/
manage.py runserver 0.0.0.0:8000
It should run everything in containers now.
- Run
bash setup_env.bash
- Copy
env.example
to.env
- Grab git bash shell for windows
- Have python3 installed and named
python
in path - Have pip3 and virutalenv instlaled
- Run git bash as administrator and execute
bash setup_env_win.bash
Copy env.example
in the project root to .env
, update any values if necessary.
- Settings->Project->Project Interpreter
- Add the virtualenv in
.virtualenv
as your project interpreter
- Add the virtualenv in
- Settings->Languages/Frameworks
- Turn on Djagno Support
- Project Root:
proj/
- Environment Variables:
DJAGNO_SETTINGS_MODULE=settings
- Manage Script:
manage.py
- Project Root:
- Turn on Djagno Support
- Right click
proj
directoryand click "Mark as Sources" - Run->Edit configurations
- Make a django server