Skip to content

Commit

Permalink
make GDAL optional
Browse files Browse the repository at this point in the history
  • Loading branch information
sheppard committed Jan 11, 2019
1 parent 93162d9 commit 556e30f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion django_project
7 changes: 6 additions & 1 deletion projects.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")


Expand All @@ -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
Expand Down Expand Up @@ -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)

Expand Down

0 comments on commit 556e30f

Please sign in to comment.