-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
6 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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, | ||
) | ||
|
@@ -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, | ||
) | ||
|
@@ -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 | ||
|
@@ -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, | ||
) | ||
|