Skip to content

Commit

Permalink
django-admin.py deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
giohappy authored Jul 30, 2024
1 parent 1d7c3a5 commit 3b90e4d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ def fixtures(ctx):
def collectstatic(ctx):
print("************************static artifacts******************************")
ctx.run(
f"django-admin.py collectstatic --noinput \
f"django-admin collectstatic --noinput \
--settings={_localsettings()}",
pty=True,
)
Expand Down Expand Up @@ -438,7 +438,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"django-admin updategeoip --settings={_localsettings()}", pty=True)


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

0 comments on commit 3b90e4d

Please sign in to comment.