From fcd8554ea70c37b462274b6d123d89a09491086d Mon Sep 17 00:00:00 2001 From: Adarnof Date: Thu, 14 Dec 2017 00:23:09 -0500 Subject: [PATCH] Define additional arguments for startproject Allows project creation with Django 2.0 --- allianceauth/bin/allianceauth.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/allianceauth/bin/allianceauth.py b/allianceauth/bin/allianceauth.py index e03656cb..25720c4b 100644 --- a/allianceauth/bin/allianceauth.py +++ b/allianceauth/bin/allianceauth.py @@ -3,7 +3,15 @@ import os import shutil from optparse import OptionParser from django.core.management import call_command -from django.core.management.commands.startproject import Command as StartProject +from django.core.management.commands.startproject import Command as BaseStartProject + + +class StartProject(BaseStartProject): + def add_arguments(self, parser): + super().add_arguments(parser) + parser.add_argument('--python', help='The path to the python executable.') + parser.add_argument('--celery', help='The path to the celery executable.') + parser.add_argument('--gunicorn', help='The path to the gunicorn executable.') def create_project(parser, options, args):