How to run a python script continuosly once started on an online server without user interaction?

Few days back I wrote a Python script which retrieves running train information from a website and sends a SMS to a user specified number. It checks the train website, every 10 minutes in a loop,...

PythonAnywhere->ImportError raised loading nrpccms.newsroom.templatetags.blog_extras: No module named settings

I'm trying to deploy my very first app in PythonAnywhere (or at AnywhereAnywhere for that matter). I'm currently getting: TemplateSyntaxError: 'blog_extras' is not a valid tag library: ImportError...

Is it possible to serve a static html page at the root of a django project?

I have a django app hosted on pyhtonanywhere. The app resides at username.pythonanywhere.com/MyApp. I would like to serve a static html page at username.pythonanywhere.com. Is this possible?...

How to implement Flask Application Dispatching by Path with WSGI?

I would like to use a single domain as a Staging Environment for multiple flask applications that will eventually run on their own domains. Something...

Getting a SQL error when running "python manage.py migrate" using a MySQL database

I've been through the introductory tutorial for Django successfully using SQLite as per the instructions. However, for my real project I want to use MySQL, so I deleted the tutorial project files...

Speed optimisation in Flask

My project (Python 2.7) consists of a screen scraper that collects data once a day, extracts what is useful and stores that in a couple of pickles. The pickles are rendered to an HTML-page using...

PythonAnywhere - Mysql error: 1044 (42000): Access denied

I am trying to host a Python/Mysql project online with PythonAnywhere. When I attempt to connect to the database with: (host and password changed obviously) conn =...

Can I use Heroku to Scrape Data to later Download?

I have a python script that scrapes data from different websites then writes some data into CSV files. I run this every day from my local computer but I would like to make this automatically...

How do I host a Django project on a host that already exists?

I have a project in Django and I have a host that was sent to me where my project should appear, but I do not know how I will do it. I uploaded the project folder with a Filezilla, but I do not...

Pythonanywhere returning BadStatusLine when I am trying to get request of Airbnb through Selenium

This is my code. import requests from bs4 import BeautifulSoup import time import datetime from selenium import webdriver import io from pyvirtualdisplay import Display neighbours = [] with...

django.core.exceptions.AppRegistryNotReady: Apps aren't loaded yet. (django 2.0.1)(Python 3.6)

It's my first time trying to deploy a Django app(django 2.0.1)(Python 3.6) to pythonanywhere, it is a simple portfolio app with no models, no bootstrap. Just Django, HTML, CSS & Javascript. After...

Import error: No module named 'scipy._lib'

I'm using pythonanywere.com to deploy my Django application. So I've installed a few machine learning libraries to that virtual environment. (venv) 19:16 ~ $ pip3 list Package Version ...

Why I can not get remote access to MySQL on Amazon RDS?

So, I have already created a new security group rds_access for my RDS instance with Inbound-> >Source parameter set to 0.0.0.0/0, and updated the instance so in the 'Security groups' section on...

Could not find a version that satisfies the requirement ItsDangerous==1.0.0. Django, Pythonanywhere

When I try to deploy my application to pythonanywhere, the following error it is returned. Could not find a version that satisfies the requirement ItsDangerous==1.0.0 How can I solve it? I...

502 Bad Gateway. After implementing the application on 'digitalocean'

I added my applications on DigitalOcean. But when I turn on my website I see the error. "502 Bad Gateway nginx/1.14.0 (Ubuntu)". I would like to solve it, but I do not know where I can find logs...

SocketException: OS Error: Connection refused, errno = 111 in flutter using django backend

I m building a flutter app with django rest-framework. The registration api is working fine in Postman but after some successful registration from the flutter app it is showing the above error....

FullCalendar doesn't load body properly

The problem is basically that fullcalendar doensn't load properly. It works in some browsers but not in others. Example: works in Chrome on Ubuntu but doesn't in Chrome on...

Django-Filer Canonical URLS not working properly (Page not Found)

I am using Django-Filer in my admin on a Django web project which is hosted in PythonAnywhere. I have gone through the installation instructions but I am having trouble accessing the canonical...

CSS not working in Django admin: The resource from [css file url] was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff

Django admin is displaying without CSS because of the error: The resource from “my-website-address/static/admin/css/responsive.css” was blocked due to MIME type (“text/html”) mismatch...

error importing 'BlobServiceClient' from 'azure.storage.blob'

I have the following line of code: from azure.storage.blob import BlobServiceClient I get the following error: from azure.storage.blob import BlobServiceClient ImportError: cannot import name...

wsgi application name 'BASE_DIR' is not defined

I deployed django app on pythonanywhere.com. I am seeing this error. I searched a lot but didnt got anything. I am stuck with wsgi and dont know what to do with it. please help 2020-05-27...

aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host stackoverflow.com:443 ssl:default [Connect call failed ('151.101.193.69', 443)]

here is my code: import asyncio from aiohttp import ClientSession async def main(): url = "https://stackoverflow.com/" async with ClientSession() as session: async with...

WSGI Error when Trying to Deploy Web Flask App with PythonAnyWhere

I want to deploy my flask app publicly using pythonanywhere. I am new to this (I am a beginner). I have followed all steps exactly. But I have got some error on my web flask app. On my website, I...

Django 3.X admin showing all models in a new navbar

I run my web application on pythonanywhere and main admin page works fine, but others show my models on left side, can't find reason for this. Any idea?

return database_name == ':memory:' or 'mode=memory' in database_name TypeError: argument of type 'PosixPath' is not iterable

I was making one webapp in django. I try to deployed it on pythonanywhere everything was going fine but in last when i tried to collect static files using python manage.py collectstatic it is...

React Native cannot connect to localhost from another device

I use Django rest framework as my API, however, I'm unable to connect to localhost from my android device (not an emulator). I have gone through many questions on StackOverflow and Github but none...

how to fix AttributeError: 'NoneType' object has no attribute 'strip' in this specific code?

I'm new to coding and I've been trying to make a simple discord bot, as an experiment, and I keep getting this when I try to run it on PythonAnywhere. I don't have this problem on repl.it...

Cant get past 429 Error (too many requests) on instagram api login (instagrapi)

I need help figuring out the Retry-After time dynamically for my login request to the Instagram API. I am wondering if my IP has been banned on my desktop, however I do not think that is the issue...

Can someone explain to my why my django admin theme is dark?

I host my small project on pythonanywhere and after i host it i check if it is working and when i click the django admin, the theme of my django admin is dark and when i tried to run on my local...

Can't Access cowin api through pythonanywhere

I have the following code to be run on pythonanywhere inside a flask application import requests headers = { ...