v2.0 : plus de squelette projet
[auf_recipe_django.git] / auf / recipe / django / recipe.py
index 5402af6..1c1dad6 100644 (file)
@@ -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'],