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

Add aleksis-admin script

parent be6f2957
No related branches found
No related tags found
1 merge request!407Add aleksis-admin script
Pipeline #4951 failed
"""Management utilities for an AlekSIS installation."""
import os
import sys
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")
execute_from_command_line(sys.argv)
......@@ -101,6 +101,9 @@ celery = ["Celery", "django-celery-results", "django-celery-beat", "django-celer
[tool.poetry.dev-dependencies]
aleksis-builddeps = "*"
[tool.poetry.scripts]
aleksis-admin = 'aleksis.core.util.manage:aleksis_cmd'
[tool.black]
line-length = 100
exclude = "/migrations/"
......
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