From f54fbac6375091cf44dd45a10d7c0de3958534d7 Mon Sep 17 00:00:00 2001 From: Ronny Abraham Date: Wed, 7 Sep 2016 20:46:37 +0300 Subject: [PATCH] fixed param issue with gunicorn in script generator modified: modules/django.py --- modules/django.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/modules/django.py b/modules/django.py index 2c300cc..70160f4 100644 --- a/modules/django.py +++ b/modules/django.py @@ -359,13 +359,14 @@ def generate_scripts(template_name, make_copy=False): @task def generate(param=None, make_copy=False): SCRIPT_LIST = ['settings', 'local', 'wsgi'] - PARAM_LIST = SCRIPT_LIST + list('gunicorn') + PARAM_LIST = SCRIPT_LIST + PARAM_LIST.append('gunicorn') make_copy = booleanize(make_copy) if param and param not in PARAM_LIST: - err_msg = "You asked to generate a script that isn't available" \ - "possible script values available: %s" % SCRIPT_LIST + err_msg = "You asked to generate %s, that value isn't available" \ + " possible script values available: %s" % (param, PARAM_LIST) import sys sys.exit(err_msg) @@ -410,7 +411,7 @@ def generate_gunicorn(make_link=True): 'files') build_path = os.path.join( - configuration.templates.gunicorn.path.dest, + configuration.templates.gunicorn.path.remote, 'build', configuration.templates.gunicorn.conf.dst)