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)