from __future__ import with_statement
+from distutils.dir_util import copy_tree
from optparse import OptionParser
+from mezzanine.utils.importing import path_for_import
parser.error("Could not import package '%s'" % package_name)
+ # Build the project up copying over the project_template from
+ # each of the packages. An alternate package will overwrite
+ # files from Mezzanine.
+ for package_name in packages:
+ package_path = path_for_import(package_name)
+ copy_tree(os.path.join(package_path, "project_template"), project_path)
+ move(os.path.join(project_path, "local_settings.py.template"),
+ os.path.join(project_path, "local_settings.py"))
# Generate a unique SECREY_KEY for the project's setttings module.
settings_path = os.path.join(os.getcwd(), project_name, "settings.py")
with open(settings_path, "r") as f: