Questions tagged [pythonanywhere]

PythonAnywhere is a Python-centric web-based development and hosting service.

PythonAnywhere is a Python-centric web-based development and hosting service.

Customers can use a browser-based console and editor to create and run Python web and command-line applications and regularly scheduled tasks from anywhere. The service's aim is to provide the benefits of having a VPS without the setup work. It also supports simple collaboration using shared in-browser Python command lines.

1290 questions
101
votes
24 answers

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. The request is been sent on https address. Removed…
Harnish Rajput
  • 1,121
  • 2
  • 7
  • 9
57
votes
19 answers

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 pulling it from the Github repo onto pythnanywhere…
lime_ajinomoto
  • 910
  • 1
  • 9
  • 9
42
votes
2 answers

How to VPN/Proxy connect in Python?

I'm trying to scrape some pages that are on a website but to view the pages, I need to be connected to a VPN. My setup is as follows: I am running python on a cloud server on www.pythonanywhere.com I have a VPN with…
Liam Flynn
  • 2,009
  • 3
  • 17
  • 16
29
votes
6 answers

Converting docx to pdf with pure python (on linux, without libreoffice)

I'm dealing with a problem trying to develop a web-app, part of which converts uploaded docx files to pdf files (after some processing). With python-docx and other methods, I do not require a windows machine with word installed, or even libreoffice…
Ofer Sadan
  • 11,391
  • 5
  • 38
  • 62
29
votes
2 answers

Uploading and Downloading Files with Flask

I'm trying to write a really simply webapp with PythonAnywhere and Flask that has lets the user upload a text file, generates a csv file, then lets the user download the csv file. It doesn't have to be fancy, it only has to work. I have already…
User1996
  • 393
  • 1
  • 4
  • 9
25
votes
5 answers

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 host the theme is white so i tried to double check my…
k3v1n
  • 381
  • 1
  • 3
  • 8
24
votes
2 answers

Keeping `__pycache__` out of my repository when adding/committing from pythonanywhere

I built a web app on a my local win7 machine. I did it with pycharm and used git as version control. I'm a total git novice. I put the repository on github so that I could stage the webapp to my pythonanywhere server. On pythonanywhere side, I…
user3556757
  • 3,469
  • 4
  • 30
  • 70
23
votes
6 answers

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 session.get(url) as resp: …
0dminnimda
  • 1,242
  • 3
  • 12
  • 29
21
votes
1 answer

Ordering and Formatting Dates on X-Axis in Seaborn Bar Plot

This seems so simple, but for the life of me I can't figure it out. I am new to Python and Seaborn, and I am doing all this online at PythonAnywhere. All I am trying to do is create a simple barplot in seaborn, with dates ordered properly (that is,…
ngunsch
  • 235
  • 1
  • 2
  • 7
17
votes
2 answers

PythonAnywhere `python3.6 -m venv test` Results in Error

I'm trying to use python3.6 -m venv test directly in PythonAnywhere to create a virtualenv. I wanted to use this method as I believe it is more portable to other environments where virtualenvwrapper might not be set up. When I run the command (in a…
Dave Potts
  • 1,543
  • 2
  • 22
  • 33
12
votes
5 answers

How do I deploy web2py on PythonAnywhere?

How do i get a basic web2py server up and running on PythonAnywhere?
fuzzyman
  • 8,271
  • 2
  • 30
  • 32
12
votes
3 answers

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? Essentially it would serve as an index linking to /MyApp,…
thedarklord47
  • 3,183
  • 3
  • 26
  • 55
11
votes
4 answers

"ImportError: No module named..." when importing my own module

I am trying to import a module and I keep getting an ImportError. In the PortfolioStatus.py file I have the following code which imports the share_data class from the share_data.py module from Shares.share_data import share_data I am getting the…
Lucas Amos
  • 1,117
  • 4
  • 15
  • 36
11
votes
1 answer

How To Deploy: Installing Mezzanine Theme

How to install Mezzanine Theme exactly, step-by-step? E.g., Moderna free theme.
sdd
  • 721
  • 9
  • 23
9
votes
2 answers

How to access webcam in OpenCV on PythonAnywhere through Javascript?

I have developed a WebApplication in Django that has a view method which contains the OpevCV code that when triggered opens the User Webcam to detect its face. This app works fine in my localserver but when I have hosted it on PythonAnywhere it says…
Aayush Gupta
  • 504
  • 1
  • 5
  • 28
1
2 3
85 86