avaaren

КАК???

May 11th, 2020
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 KB | None | 0 0
  1. from django.views.generic import TemplateView
  2.  
  3. import requests
  4.  
  5. class GetShibaImage(TemplateView):
  6. template_name = 'pictures/shibe.html'
  7.  
  8. TypeError at /
  9. __init__() takes 1 positional argument but 2 were given
  10. Request Method: GET
  11. Request URL: http://127.0.0.1:8000/
  12. Django Version: 3.0.6
  13. Exception Type: TypeError
  14. Exception Value:
  15. __init__() takes 1 positional argument but 2 were given
  16. Exception Location: /home/avaaren/.virtualenvs/shibe-site/lib/python3.6/site-packages/django/core/handlers/base.py in _get_response, line 113
  17. Python Executable: /home/avaaren/.virtualenvs/shibe-site/bin/python3
  18. Python Version: 3.6.9
  19. Python Path:
  20. ['/home/avaaren/PY/shibe_site',
  21. '/usr/lib/python36.zip',
  22. '/usr/lib/python3.6',
  23. '/usr/lib/python3.6/lib-dynload',
  24. '/home/avaaren/.virtualenvs/shibe-site/lib/python3.6/site-packages']
  25. Server time: Mon, 11 May 2020 12:33:05 +0000
Add Comment
Please, Sign In to add comment