L
L
luna39562019-01-25 06:10:14
Django
luna3956, 2019-01-25 06:10:14

The library is not connected or what?

Ubuntu 16.04
Python 3.5
Django 2.1.5
Trying to connect this .
I install it in virtenv I
pip install requests
add it to views.py
import requests
I try to check if it works with a line I get an
r = requests.get('https://api.github.com/events')
Internal Server Error
How to make it work?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Artem, 2019-01-25
@ulkoart

Internal Server Error
this is a server side error, requests is not the culprit.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question