2
0

homepage_view.py 476 B

1234567891011121314
  1. from django.http import HttpResponse
  2. from django.views import View
  3. class HomepageView(View):
  4. def get(self, request, *args, **kwargs):
  5. """
  6. 首页
  7. :param request:
  8. :param args:
  9. :param kwargs:
  10. :return:
  11. """
  12. return HttpResponse('<div>欢迎使用loonflow<br><a href="/manage">管理后台</a><br><a href="/admin">django管理后台</a><br><a href="https://github.com/blackholll/loonflow">使用文档</a></div>')