X-Git-Url: https://git.auf.org/?p=auf_recipe_django.git;a=blobdiff_plain;f=auf%2Frecipe%2Fdjango%2Frecipe.py;h=75aae68969e8a825859767d4252f7481fbe255f3;hp=5e90a90c8899fbea36add78c5664bba49c5c8bf5;hb=3a9e38cceb9dd4f5403a1534ec6cfa93a1f5d4ea;hpb=4be9d9daaed478228549f96a08eb7740028ff543 diff --git a/auf/recipe/django/recipe.py b/auf/recipe/django/recipe.py index 5e90a90..75aae68 100644 --- a/auf/recipe/django/recipe.py +++ b/auf/recipe/django/recipe.py @@ -4,6 +4,7 @@ import os import shutil import pkg_resources import djangorecipe +import zc.buildout from djangorecipe.boilerplate import versions from djangorecipe.recipe import Recipe as OriginalDjangoRecipe from boilerplate import * @@ -82,5 +83,12 @@ class Recipe(OriginalDjangoRecipe): dst = os.path.join(project_dir, 'media', 'django') shutil.copytree(src, dst) - - + def create_manage_script(self, extra_paths, ws): + project = self.options.get('projectegg', self.options['project']) + return zc.buildout.easy_install.scripts( + [(self.options.get('control-script', self.name), + 'auf.recipe.django.manage', 'main')], + ws, self.options['executable'], self.options['bin-directory'], + extra_paths=extra_paths, + arguments="'%s.%s'" % (project, + self.options['settings']))