mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2025-07-11 21:40:17 +02:00
Define additional arguments for startproject
Allows project creation with Django 2.0
This commit is contained in:
parent
98da0723fc
commit
fcd8554ea7
@ -3,7 +3,15 @@ import os
|
|||||||
import shutil
|
import shutil
|
||||||
from optparse import OptionParser
|
from optparse import OptionParser
|
||||||
from django.core.management import call_command
|
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):
|
def create_project(parser, options, args):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user