Forums

Update Django app from fishnchips to haggis

Hi there,

I ignored the warnings about the system updated to haggis and now my Django app is down.

Is was on python 3.8 and it said haggis support python 3.8 so why this update may cause issue?

From console python --version give me: Python 3.10.5

On Configuration page when I switched to 3.10, after reload, I got:

There is a problem with your virtualenv setup. Look at the virtualenv section below for details.

And error.log:

 django.db.utils.OperationalError: (2003, "Can't connect to MySQL server on 'username.mysql.pythonanywhere-services.com' (111)")
2023-11-04 01:47:04,033: OSError: write error

...

File "...env/lib/python3.8/site-packages/MySQLdb/__init__.py", line 24, in <module>
    2024-11-30 05:25:23,154:     version_info, _mysql.version_info, _mysql.__file__
    2024-11-30 05:25:23,154: ***************************************************
    2024-11-30 05:25:23,154: If you're seeing an import error and don't know why,
    2024-11-30 05:25:23,154: we have a dedicated help page to help you debug: 
    2024-11-30 05:25:23,155: https://help.pythonanywhere.com/pages/DebuggingImportError/
    2024-11-30 05:25:23,155: ***************************************************

Looks like SQL errors. Is there any instruction for this update to adapt our app to haggis?

There must be some import error in between.