main.py 426 B

12345678910111213141516
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. """
  4. demeter web page
  5. name:main.py
  6. author:rabin
  7. """
  8. from __load__ import *
  9. class index_path(Load):
  10. def get(self):
  11. # 获取焦点图
  12. self.data['focus'] = self.service('common').list('web_article', search={'category_id':2})
  13. # 获取系统优势
  14. self.data['youshi'] = self.service('common').list('web_article', search={'category_id':3})
  15. self.view("index.html")