X-Git-Url: https://git.auf.org/?p=auf_recipe_django.git;a=blobdiff_plain;f=auf%2Frecipe%2Fdjango%2Frecipe.py;h=1c1dad6c5d506e2525c34b5c54a833e010a45d5d;hp=5402af6daaa636f01221a32d568cc1f5dd516217;hb=7b0d690239d23b90ea8421f0eebd3dbd42e98aa9;hpb=4edf55b7ca9b69c0e62f5cb98fd3a6dbefd367a7 diff --git a/auf/recipe/django/recipe.py b/auf/recipe/django/recipe.py index 5402af6..1c1dad6 100644 --- a/auf/recipe/django/recipe.py +++ b/auf/recipe/django/recipe.py @@ -1,17 +1,9 @@ # -*- encoding: utf-8 -*- import os -import shutil -import pkg_resources -import djangorecipe -from djangorecipe.boilerplate import versions +import zc from djangorecipe.recipe import Recipe as OriginalDjangoRecipe -from boilerplate import * - -djangorecipe.boilerplate.versions['1.3']['settings'] = auf_settings_template -djangorecipe.boilerplate.versions['1.3']['urls'] = auf_urls_template -djangorecipe.boilerplate.versions['1.3']['production_settings'] = auf_production_settings -djangorecipe.boilerplate.versions['1.3']['development_settings'] = auf_development_settings +from boilerplate import auf_buildout_file, auf_script_template class Recipe(OriginalDjangoRecipe): @@ -51,19 +43,11 @@ class Recipe(OriginalDjangoRecipe): return script_paths + [location] - def create_project(self, project_dir): - super(Recipe, self).create_project(project_dir) - - # fichier de configuration de base de données - self.create_file(os.path.join(project_dir, 'conf.py'), conf_file, self.options) - self.create_file(os.path.join(project_dir, 'conf.py.edit'), conf_file, self.options) - self.create_file(os.path.join(project_dir, 'dashboard.py'), dashboard_file, self.options) - def create_manage_script(self, extra_paths, ws): _script_template = zc.buildout.easy_install.script_template zc.buildout.easy_install.script_template = auf_buildout_file project = self.options.get('projectegg', self.options['project']) - scripts = zc.buildout.easy_install.scripts( + scripts = 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'],