Skip to content
This repository has been archived by the owner on Aug 7, 2024. It is now read-only.

add django.setup() (needed in django 1.10) #687

Merged
merged 1 commit into from
Jul 24, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions aimmo_runner/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,12 @@ def run(use_minikube, server_wait=True, capture_output=False, test_env=False):
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "example_project.settings")

run_command(['pip', 'install', '-e', ROOT_DIR_LOCATION], capture_output=capture_output)

if not test_env:
run_command(['python', _MANAGE_PY, 'migrate', '--noinput'], capture_output=capture_output)
run_command(['python', _MANAGE_PY, 'collectstatic', '--noinput'], capture_output=capture_output)

django.setup()
create_superuser_if_missing(username='admin', password='admin')

server_args = []
Expand Down