From 2c19ba589b039988d7b60ba40b02df2f60e7a5e3 Mon Sep 17 00:00:00 2001 From: Ronny Abraham Date: Mon, 28 Aug 2017 23:53:26 +0300 Subject: [PATCH] updated help message modified: modules/django.py --- modules/django.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/modules/django.py b/modules/django.py index 3a08ebd..deb2969 100644 --- a/modules/django.py +++ b/modules/django.py @@ -369,6 +369,11 @@ def generate_scripts(template_name, make_copy=False): @task def generate(param=None, make_copy=False): + """ + param can be one of settings, local, wsgi + make_copy must be set to True if you want it to actually do anthing + """ + SCRIPT_LIST = ['settings', 'local', 'wsgi'] PARAM_LIST = list(SCRIPT_LIST) PARAM_LIST.append('gunicorn') @@ -384,6 +389,7 @@ def generate(param=None, make_copy=False): print "django:generate make_copy : %s\n" % make_copy print "django:generate script : %s" % param + if env.debug: print "django:generate script : %s" % param print "django:generate make_copy : %s\n" % make_copy @@ -396,7 +402,6 @@ def generate(param=None, make_copy=False): if not param: # this is where script=None, generate all scripts - for scriptkey in SCRIPT_LIST: generate_scripts(scriptkey, make_copy)