Questions tagged [pythonanywhere]

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

pythonanywhere
Filter by
Sorted by
Tagged with
2 votes
1 answer
596 views

ModuleNotFoundError no module named onetimepad?

i have deployed my web app on pythonanywhere website and the website is working properly but i also created the virtualenv where i installed my app packages everything is working fine but when i ...
Umair Mubeen's user avatar
2 votes
1 answer
675 views

Django Sending Email with Office365 on Pythonanywhere

I have deployed my web project on Pythonanywhere. Im sending email with gmail SMTP but i want to send with Office365 (company account). I used many options but i didnt figure it out. It exists in ...
Can Şahin's user avatar
2 votes
1 answer
712 views

Adding a custom domain in PythonAnywhere does not work

I added my application to pythonanywhere, now I'm trying to add a custom domain but I can not get a positive result. My change I've added in pythonanywhere looks like this. Under my hidden field is ...
Maddie Graham's user avatar
2 votes
1 answer
2k views

Getting Apache Superset deployed on Pythonanywhere

I am trying to figure out how to deploy an instance of Apache Superset as a web app on Pythonanywhere using uWSGI+nginx. I have installed started a virtual environment on Pythonanywhere and installed ...
tmo's user avatar
  • 1,423
2 votes
2 answers
143 views

Pythonanywhere scheduled jobs sometimes stay alive and don't release flock

This code is python 3.5 hosted on pythonanywhere (linux). I am using with open to manage a non-blocking flock but sometimes the scheduled process runs into exceptions which cause the job to terminate;...
Tim Richardson's user avatar
2 votes
2 answers
4k views

Django: Request timeout for long-running script

I have a webpage made in Django that feeds data from a form to a script that takes quite a long time to run (1-5 minutes) and then returns a detailview with the results of that scripts. I have problem ...
Wessi's user avatar
  • 1,782
2 votes
2 answers
741 views

How to set up Flask on pythonanyhwere based on flask megatutorial

I am currently developing an application. this web app has its own domain. when initially created i set up the domain and the registrar using the cname and it succesfully displayed after a couple of ...
George Pamfilis's user avatar
2 votes
2 answers
769 views

Requests: Module works locally but failed on pythonanywhere

I am trying to make a twitter bot that uses requests library to get data from nytimes api. There is a line in the code resp = requests.get(API_ENDPOINT, my_params) Now this works very well when I ...
ChaoticTwist's user avatar
2 votes
3 answers
227 views

Session lost while on PythonAnywhere Web2Py but NOT locally

I use a session variable to pass some info with a redirect: session.OrigText = XML(str(OrigText)) redirect(URL('SearchResultsOrigText')) It arrives at the new URL / page / view - ...
Toren's user avatar
  • 442
2 votes
1 answer
2k views

External access to pythonanywhere MySQL database with pandas and SQLAlchemy

I want to use pandas to read data from my pythonanywhere MySQL database. pandas uses sqlalchemy. The following doesn't work: import pandas as pd from sqlalchemy import create_engine engine = ...
tobip's user avatar
  • 475
2 votes
3 answers
4k views

How to let Django use mysqlclient instead of mysqlDB

I'm on PythonAnywhere, python 3.4, Django latest version, virtualenv, using mac os x. I tried to install both mysqlclient and mysqlDB on my virtualenv on PythonAnywhere, mysqlDB failed because it is ...
Vicky Zhang's user avatar
2 votes
1 answer
498 views

How to change web2py connection timeout on pythonanywhere?

I am hosting a web2py application on PythonAnywhere. My problem is that the application is bound to take few minutes to respond(because of data processing or non-optimized implementation). During this ...
Pushkar's user avatar
  • 21
2 votes
2 answers
143 views

Django project on pythonanywhere

I uploaded my app that worked fine on my local machine to pythonanywhere. I got it to work but instead of showing the homepage of my blog it shows the "It worked, welcome to Django" page. Could ...
Lonto81's user avatar
  • 93
2 votes
2 answers
935 views

Pythonanywhere How to Choose Different Install Directory

Getting following when installing modules. Get like message trying to install other modules. Help greatly appreciated. Thank you! [Errno 13] Permission denied: '/usr/local/lib/python2.7/dist-p ...
Rayl54292's user avatar
2 votes
1 answer
633 views

Selecting the correct settings file to use in Django

I'm following the approach in Two Scoops of Django: Best Practices for Django 1.6 regarding multiple settings files. I'm using Django 1.7 and virtualenvwrapper. My setup is as follows: project/ ...
Kritz's user avatar
  • 7,211
2 votes
1 answer
239 views

Webapp without a framework on pythonanywhere

Is it possible for me to write my own server and use that on pythonanywhere? I saw in the wsgi file that it just imports app as application from my source. Can I just supply an object called app that ...
Broseph's user avatar
  • 1,733
2 votes
1 answer
477 views

Running sentence transformers at PythonAnywhere

I am trying to run a HuggingFace model for computing vector embeddings as explained here at PythonAnywhere (it worked just fine locally on my laptop under Ubuntu under WSL2). The installation went ...
AlwaysLearning's user avatar
2 votes
1 answer
355 views

How do I get Pythonanywhere's web app to work with my new files?

I am using Pythonanywhere to host a simple Flask web app for an academic project. The tutorial set me up with a simple flask_app.py hello world file that showed up at the url provided. I then deleted ...
Knight0Light's user avatar
2 votes
1 answer
375 views

Is there any way to automatically set Debug True Django application

I have a Django API that is being deployed in PythonAnywhere. For that, I can not let the default option in settings.py as True: DEBUG=True However, the app also has a Swagger page using drf-yasg ...
Lavínia Beghini's user avatar
2 votes
1 answer
3k views

Error running WSGI application, ModuleNotFoundError: No module named 'django_countries'

I'm trying to deploy my webApp on PythonAnywhere but the following error occour: 2019-10-01 18:20:12,820: Error running WSGI application 2019-10-01 18:20:12,928: ModuleNotFoundError: No module named '...
JLeno46's user avatar
  • 1,249
2 votes
1 answer
3k views

Bokeh Uncaught Error: property wasn't declared

I have successfully deployed my Django app on PythonAnywhere.com except for my Bokeh plots. Instead of rendering, this is the error that shows up in the console. bokeh-1.1.0.min.js:31 Uncaught Error:...
Ajay Shah's user avatar
  • 414
2 votes
2 answers
1k views

How to deploy a Flask application on pythonanywhere with a folder as a module

Currently I am trying to a deploy my first FLASK application on PythonAnywhere. Im not sure if this is the correct terminology but I have a folder as a module and there for I can't seem to find the ...
Ivan's user avatar
  • 45
2 votes
2 answers
2k views

Problems with starting Telegram bot

I'm trying to deploy my telegram-bot on PythonAnywhere. It has worked fine with the free account but there are some troubles with the paid one. I'm getting "OpenSSL.SSL.Error: [('SSL routines', '...
Артем Носов's user avatar
2 votes
2 answers
771 views

Using PubNub to publish message in Django view

I want to use PubNub to publish a message from a Django view. I'm running my web app on pythonanywhere. It seems to work fine at first, but if I refresh the page a few times in succession, I ...
Mike's user avatar
  • 150
2 votes
1 answer
236 views

Connecting to MySQL database located at (pythonanywhere.com) from app located at (heroku.com)

I created a webb app and deployed it at Heroku. So far, so good. Now I need to integrate it with the MySQL database which is located at pythonanywhere.com. I tried the following command (which is ...
Elias's user avatar
  • 133
2 votes
1 answer
575 views

Why is my CSS in pythonanywhere taking a day to load?

I change a CSS file, run collectstatic but nothing happens - the app keeps the previous styling, even though that CSS no longer exists anywhere in my files. I got frustrated and gave up yesterday, and ...
ejasquith's user avatar
2 votes
1 answer
603 views

Django cannot serve uploaded media in production pythonanywhere

After succeed in development stage to serve the media uploaded (images) and view it in the pages, i am struggling in achieving this thing in production server and deployment seems too hard for me. ...
Mohamad Alhaddad's user avatar
2 votes
2 answers
2k views

Multi tenant django application using URL mappings instead of domain mappings

In django, most multi-tenant implementations (modules) are mapping hosts onto views. e.g. mapping host/URL -> django view using postgress schema's: customer1.myapp.com/view1/arg1 -> myapp.view1(...
Davy's user avatar
  • 1,768
2 votes
1 answer
694 views

Django Admin login OperationalError at /admin/login/ (1044, "Access denied for user

I'm using Django 1.10 with Python 3.5.2 on the PythonAnywhere web hosting platform and I am trying to login to the Admin site with my my Django superuser called adminuser but I am having this error, ...
PythonAnywhere's user avatar
2 votes
1 answer
1k views

How to test my website on PythonAnywhere before setting up my CNAME?

I've gotten part way through deploying my new webapp on PythonAnywhere, and currently it's got the 'Coming Soon' place holder. When I refresh the app from the web tab it tells me I need to set the ...
AncientSwordRage's user avatar
2 votes
1 answer
1k views

Pythonanywhere Loading data from local files

I'm new to pythonanywhere. I wonder how to load data from local csv files (there are many of them, over 1,000) into a mysql table. Let's say the path for the folder of the csv files is d:/data. How ...
Amadeus's user avatar
  • 345
2 votes
1 answer
80 views

Form drop down for content_type

please i have the following line of code whose intention is to limit the models presented in the form drop down for the contenttype field to contain only 'Facilitator', 'Enumerator' and 'Tutor' models....
Pila's user avatar
  • 5,670
2 votes
1 answer
261 views

Django order_by() is not working for me on PythonAnywhere

For some reason order_by() is not working for me on a queryset. I've tried everything I can think of, but my Django/MySQL installation doesn't seem to be doing anything with order_by() method. The ...
Terry Rozmus's user avatar
2 votes
1 answer
1k views

PythonAnywhere trying to upload my website

I am trying to upload my web-app on PythonAnywhere, but I am not able to do that.I have tried many ways and also searched on google but I am unable to solve it. Please tell me what I am lacking in or ...
Rahul Shrivastava's user avatar
2 votes
5 answers
4k views

I have deployed my django project in python anywhere but its not working

I have deployed my website in Python Anywhere but its not working. I have uploaded it to python anywhere, also changed WSGI and settings.py but it is just showing welcome page.. setting.py file on ...
user avatar
2 votes
2 answers
2k views

How do I use flask-migrate on pythonanywhere?

Does anyone have an example of successfully using flask-migrate on pythonanywhere? Does anyone have a simple example of what an app.py using migration should look like? Something along the lines of: ...
Peter Cotton's user avatar
  • 1,761
2 votes
2 answers
1k views

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 ...
Mario Ricardo Osorio's user avatar
2 votes
1 answer
694 views

Enable Automatic Reload in Django on PythonAnywhere

I've been wondering if I can enable Auto Reload on a PythonAnywhere-based Django web-server. Right now, when I make any changes to my models or views, I have to reload the complete web-app for changes ...
Mats Willemsen's user avatar
2 votes
0 answers
75 views

Django url not matching in production

I have a web app which uses Django4.0.6 and Python3.9. urlpatterns += [ re_path(r'^payment/payment-history/(?P<cand_id>\d+)/(?P<curr_year>\d+)/(?:/(?P<payment_id>-?\d+))?/(?:/(?P&...
HERO's user avatar
  • 41
2 votes
0 answers
853 views

How to deploy a FastAPI endpoint using pythonanywhere?

I have been trying to deploy EasyOCR (it's fine if it works on CPU) with FastAPI endpoints such that anyone can use it via https POST request. It runs fine on my local host but when I have been facing ...
Somya-15's user avatar
2 votes
1 answer
7k views

Pythonanywhere - ping: socket: Operation not permitted

Please help. I have a Telegram Bot that ping static IP every 60 seconds, when i start him from Bash Console - it works fine but once a day stops working. I tried to use Always on task but in log file ...
Денис Кривульський's user avatar
2 votes
0 answers
141 views

how or where add css files in pythonanywhere?

I've made a a app.py and the style's of the dropdown dont open in pythonanywhere How do I open my stylesheet for the dropdown? this is the stylesheet: styles.css I have a static folder , but don't ...
user20169570's user avatar
2 votes
0 answers
732 views

Pythonanywhere ModuleNotFoundError No module named mysite

Hi I've been continuing to get this error on Pythonanywhere trying to run a Django project. Error is with the WSGI file but not sure what I'm doing wrong. Here is my WSGI file currently: import os ...
Cole36's user avatar
  • 33
2 votes
1 answer
2k views

How do I solve this ModuleNotFoundError: No module named 'django_mfa' error?

*I want to implement MFA in my python project but I get this error message: Error running WSGI application 2021-12-19 19:49:30,255: ModuleNotFoundError: No module named 'django_mfa' 2021-12-19 19:49:...
nicekoda's user avatar
2 votes
0 answers
138 views

Flask-dance Google oauth setup issue with pythonanywhere

I am trying to set up Google login for my webapp with Flask-dance. The problem is with setting the 'Authorized redirect uri' in the Google Developer's console as https://moneycare.pythonanywhere.com/...
debashish's user avatar
  • 1,394
2 votes
1 answer
601 views

Django Weasyprint: Timeout error loading css while site is hosted on PythonAnywhere

I'm struggling to use Django WeasyPrint correctly while exporting a template to PDF. This issue only occurs on the PythonAnywhere version, using the view on localhost works as intended. Using any ...
Kirkmania's user avatar
2 votes
2 answers
1k views

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 use ...
Corinna Abigail's user avatar
2 votes
1 answer
110 views

Flask site loads locally but fails on production (PythonAnywhere)

Yes, I have checked the errorimportingdebugging webpage that PythonAnywhere has. The site runs locally, but fails in production.
rd360's user avatar
  • 197
2 votes
0 answers
3k views

Use CURL with youtube-dl as external downloader

I am using the youtube-dl library for converting videos to mp3, and looking to speed up the conversion & downloading process. (Recently read about --external-downloader aria2c(to speed downloads) ...
shriniket deshmukh's user avatar
2 votes
1 answer
82 views

Can't find img pythonanywhere django

I put the project on both heroku and pythonanywhere and on both platforms there is a problem with the fact that it does not find exactly images. Path to static at pythonanywhere Staic settings in ...
Марсель Абдуллин's user avatar

1
3 4
5
6 7
27