code: def autogen(project_path):
      
      generate_quickstart(project_path)
  
      project = StatikProject(project_path)
      project.config = StatikConfig(project.config_file_path)
  
      models = list(project.load_models().values())
  
      logger.info('Creating view and template for home page (index.html).')
      generate_yaml_file(os.path.join(project_path, StatikProject.VIEWS_DIR, 'index.yaml'),
                          {   
                              'path': '/',
                              'template': 'index'
                          }
      )
      generate_index_file(os.path.join(project_path, StatikProject.TEMPLATES_DIR, 'index.jinja2'))
  
      for model in models:
          logger.info('Creating view and template for model: %s' % model.name)
          generate_yaml_file(os.path.join(project_path, StatikProject.VIEWS_DIR, '%s.yaml' % model.name),
                              {   
                                  'path': {
                                      'template': '/%s/{{ %s.pk }}' % (model.name, model.name),
                                      'for-each': {
                                          '%s' % model.name: 'session.query(%s).all()' % model.name
                                      }
                                  },
                                  'template': ('%s' % model.name),
                              }
          )
          generate_model_file(os.path.join(project_path, StatikProject.TEMPLATES_DIR, '%s.jinja2' % model.name),
                              project,
                              model,
                              model.fields.values())
docs: Autogenerates views and templates for all the models in the project.