wagtail->Wagtail in `wagtail start` output (#2856)

pull/2572/head
Tom Dyson 2016-07-19 20:08:12 -04:00 zatwierdzone przez Karl Hobley
rodzic 16c279d705
commit 32f7ed8ac1
1 zmienionych plików z 5 dodań i 5 usunięć

Wyświetl plik

@ -10,7 +10,7 @@ from django.core.management import ManagementUtility
def create_project(parser, options, args):
# Validate args
if len(args) < 2:
parser.error("Please specify a name for your wagtail installation")
parser.error("Please specify a name for your Wagtail installation")
elif len(args) > 3:
parser.error("Too many arguments")
@ -30,11 +30,11 @@ def create_project(parser, options, args):
"Python module and cannot be used as a project "
"name. Please try another name." % project_name)
print("Creating a wagtail project called %(project_name)s" % {'project_name': project_name})
print("Creating a Wagtail project called %(project_name)s" % {'project_name': project_name})
# Create the project from the wagtail template using startapp
# Create the project from the Wagtail template using startapp
# First find the path to wagtail
# First find the path to Wagtail
import wagtail
wagtail_path = os.path.dirname(wagtail.__file__)
template_path = os.path.join(wagtail_path, 'project_template')
@ -52,7 +52,7 @@ def create_project(parser, options, args):
utility = ManagementUtility(utility_args)
utility.execute()
print("Success! %(project_name)s is created" % {'project_name': project_name})
print("Success! %(project_name)s has been created" % {'project_name': project_name})
COMMANDS = {