digital-ocean

Max retries exceeded with url error Python Requests

Max retries exceeded with url error Python Requests Question: I’m trying to connect to a website with the code below. There is no problem on Heroku. But I am getting error in DigitalOcean. Code: headers = {"User-Agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36"} def web(): rq = requests.get("https://myurl.com/gts?search=word", headers …

Total answers: 1

'EntryPoints' object has no attribute 'get' – Digital ocean

'EntryPoints' object has no attribute 'get' – Digital ocean Question: I have made a deplyoment to Digital ocean, on staging (Heroku server) the app is working well, but Digital ocean it’s failing with the error below, what could be the issue : AttributeError at /admin/ ‘EntryPoints’ object has no attribute ‘get’ Request Method: GET Request …

Total answers: 6

Why gunicorn cannot find static files?

Why gunicorn cannot find static files? Question: Running Django dev server has no problem: ‘python manage.py runserver 9000’ But if use gunicorn, it complains: ‘http://innovindex.com/pubmed/static/js/jquery-3.2.1.min.js ‘ Why gunicorn cannot find a local jquery but Django can? The settings are: settings.py (seems not related): STATIC_URL = ‘/pubmed/static/’ in ‘/etc/nginx/sites-enabled/django’ location /static { alias /home/django/innovindex/pubmed/static/; } And …

Total answers: 2