views.py 323 B

123456789101112131415161718
  1. #!/usr/bin/env python
  2. # encoding: utf-8
  3. '''
  4. @author: fcc
  5. @license: MIT Licence
  6. @contact: [email protected]
  7. @software: Pycharm
  8. @site: https://www.fkomm.cn/
  9. @file: views.py
  10. @time: 2019/1/10 2:59 PM
  11. @desc:
  12. '''
  13. from django.http.response import HttpResponseRedirect
  14. def home(request):
  15. return HttpResponseRedirect("/main")