Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from django.views.generic import TemplateView
- import requests
- class GetShibaImage(TemplateView):
- template_name = 'pictures/shibe.html'
- TypeError at /
- __init__() takes 1 positional argument but 2 were given
- Request Method: GET
- Request URL: http://127.0.0.1:8000/
- Django Version: 3.0.6
- Exception Type: TypeError
- Exception Value:
- __init__() takes 1 positional argument but 2 were given
- Exception Location: /home/avaaren/.virtualenvs/shibe-site/lib/python3.6/site-packages/django/core/handlers/base.py in _get_response, line 113
- Python Executable: /home/avaaren/.virtualenvs/shibe-site/bin/python3
- Python Version: 3.6.9
- Python Path:
- ['/home/avaaren/PY/shibe_site',
- '/usr/lib/python36.zip',
- '/usr/lib/python3.6',
- '/usr/lib/python3.6/lib-dynload',
- '/home/avaaren/.virtualenvs/shibe-site/lib/python3.6/site-packages']
- Server time: Mon, 11 May 2020 12:33:05 +0000
Add Comment
Please, Sign In to add comment