forked from CGM_Public/pretix_original
Allow to call manage.py as python -m pretix
This commit is contained in:
9
src/pretix/__main__.py
Normal file
9
src/pretix/__main__.py
Normal file
@@ -0,0 +1,9 @@
|
||||
import os
|
||||
import sys
|
||||
|
||||
if __name__ == "__main__":
|
||||
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "pretix.settings")
|
||||
|
||||
from django.core.management import execute_from_command_line
|
||||
|
||||
execute_from_command_line(sys.argv)
|
||||
Reference in New Issue
Block a user