mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2026-02-10 09:06:21 +01:00
Define additional arguments for startproject
Allows project creation with Django 2.0
This commit is contained in:
@@ -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):
|
||||||
|
|||||||
Reference in New Issue
Block a user