Skip to content

Commit

Permalink
fix invalid commands
Browse files Browse the repository at this point in the history
  • Loading branch information
nicokant committed Apr 5, 2024
1 parent df46808 commit 6a6c111
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ def fixtures(ctx):
def collectstatic(ctx):
print("************************static artifacts******************************")
ctx.run(
f"django-admin.py collectstatic --noinput \
f"python manage.py collectstatic --noinput \
--settings={_localsettings()}",
pty=True,
)
Expand All @@ -422,17 +422,17 @@ def monitoringfixture(ctx):
_prepare_monitoring_fixture()
try:
ctx.run(
f"django-admin loaddata metric_data.json \
f"python manage.py loaddata metric_data.json \
--settings={_localsettings()}",
pty=True,
)
ctx.run(
f"django-admin loaddata notifications.json \
f"python manage.py loaddata notifications.json \
--settings={_localsettings()}",
pty=True,
)
ctx.run(
f"django-admin loaddata /tmp/default_monitoring_apps_docker.json \
f"python manage.py loaddata /tmp/default_monitoring_apps_docker.json \
--settings={_localsettings()}",
pty=True,
)
Expand All @@ -444,7 +444,7 @@ def monitoringfixture(ctx):
def updategeoip(ctx):
print("**************************update geoip*******************************")
if ast.literal_eval(os.environ.get("MONITORING_ENABLED", "False")):
ctx.run(f"django-admin.py updategeoip --settings={_localsettings()}", pty=True)
ctx.run(f"python manage.py updategeoip --settings={_localsettings()}", pty=True)


@task
Expand All @@ -456,7 +456,7 @@ def updateadmin(ctx):
os.environ.get("ADMIN_EMAIL", "[email protected]"),
)
ctx.run(
f"django-admin.py loaddata /tmp/django_admin_docker.json \
f"python manage.py loaddata /tmp/django_admin_docker.json \
--settings={_localsettings()}",
pty=True,
)
Expand Down

0 comments on commit 6a6c111

Please sign in to comment.