Skip to content
Snippets Groups Projects
Commit 3e2f3389 authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

Merge branch '372-runserver-stopped-working-with-aleksis-admin' into 'master'

Resolve "runserver stopped working with aleksis-admin in Django 3.1.6"

Closes #372

See merge request !483
parents e44a03aa 4e8d1c6d
No related branches found
No related tags found
1 merge request!483Resolve "runserver stopped working with aleksis-admin in Django 3.1.6"
Pipeline #5814 passed
......@@ -9,4 +9,9 @@ from django.core.management import execute_from_command_line
def aleksis_cmd():
"""Run django-admin command with correct settings path."""
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "aleksis.core.settings")
sys.argv[0] = os.path.dirname(__file__)
execute_from_command_line(sys.argv)
if __name__ == "__main__":
sys.exit(aleksis_cmd())
......@@ -103,7 +103,7 @@ celery = ["Celery", "django-celery-results", "django-celery-beat", "django-celer
aleksis-builddeps = "*"
[tool.poetry.scripts]
aleksis-admin = 'aleksis.core.util.manage:aleksis_cmd'
aleksis-admin = 'aleksis.core.__main__:aleksis_cmd'
[tool.black]
line-length = 100
......
......@@ -35,6 +35,7 @@ commands =
[testenv:build]
commands_pre =
poetry install
poetry run sh -c "cd aleksis; aleksis-admin compilemessages"
commands = poetry build
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment