From 556e30f6a2f853798e57edc3e06fe411d2049ea1 Mon Sep 17 00:00:00 2001 From: "S. Andrew Sheppard" Date: Fri, 11 Jan 2019 15:33:29 +0900 Subject: [PATCH] make GDAL optional --- django_project | 2 +- projects.py | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/django_project b/django_project index dd01d47..3fa332a 160000 --- a/django_project +++ b/django_project @@ -1 +1 @@ -Subproject commit dd01d47b6c23a28c058105beadbab2762960de25 +Subproject commit 3fa332a9f7571ea3a2565cac7c8225d7754945ba diff --git a/projects.py b/projects.py index e75659d..f6a9907 100644 --- a/projects.py +++ b/projects.py @@ -21,6 +21,7 @@ def add_arguments(self, parser): super(StartProjectCommand, self).add_arguments(parser) parser.add_argument('--domain', help="Web Domain") parser.add_argument('--app-id', help="App Identifier") + parser.add_argument('--with-gis', help="Enable GeoDjango") parser.add_argument('--wq-start-version', help="wq start version") @@ -33,7 +34,10 @@ def add_arguments(self, parser): @click.option( "-i", "--app-id", help="Application ID (e.g. io.wq.example)" ) -def start(project_name, destination, domain=None, app_id=None): +@click.option( + "--with-gis/--without-gis", default=True, help="Enable GeoDjango" +) +def start(project_name, destination, domain=None, app_id=None, with_gis=True): """ Start a new project with wq.app and wq.db. A new Django project will be created from a wq-specific template. After running this command, you may @@ -62,6 +66,7 @@ def start(project_name, destination, domain=None, app_id=None): domain=domain, app_id=app_id, wq_start_version=VERSION, + with_gis=with_gis, ) call_command(StartProjectCommand(), *args, **kwargs)