code: def generate(self, blueprint, context, interactive=True):
          
          if not isinstance(blueprint, Blueprint):
              bp = self.blueprints.get(blueprint)
              if not bp:
                  raise ValueError('%s is not a valid blueprint' % blueprint)
              blueprint = bp
  
          self.stdout.write(
              style.format_command(
                  'Generating',
                  blueprint.full_name
              )
          )
          generator = Generator(
              self,
              blueprint,
              context,
              interactive=interactive
          )
          result = generator.generate()
          if blueprint.name == 'init':
              # try re-setting the name
              self.refresh()
          return result
docs: Generate a blueprint within this application.