Forums

i'm touching the information_schema database

I deleted "My name"$default database before i read the 'note'.
Now my application don't lunch and read error: Something went wrong :-(
And log information is:
Error running WSGI application 2023-04-02 11:59:49,417: django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module. 2023-04-02 11:59:49,418: Did you install mysqlclient? 2023-04-02 11:59:49,418: File "/var/www/"My name"_pythonanywhere_com_wsgi.py", line 10, in <module> 2023-04-02 11:59:49,418: application = StaticFilesHandler(get_wsgi_application())
Can i fix this problem without to create a completely new PythonAnywhere account?
I was doing lesson named "Building a Classified Ad Web Site"

That error is not related to you deleting your database. It's because you do not appear to have mysqlclient installed. See https://help.pythonanywhere.com/pages/InstallingNewModules/

i'm installing it comand: pip install mysqlclient==1.4.6

 13:53 ~/dj4e-samples (main)$ pip install mysqlclient==1.4.6
Defaulting to user installation because normal site-packages is not writeable
Looking in links: /usr/share/pip-wheels
Collecting mysqlclient==1.4.6
  Downloading mysqlclient-1.4.6.tar.gz (85 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 85.5/85.5 kB 2.5 MB/s eta 0:00:00
  Preparing metadata (setup.py) ... done
Building wheels for collected packages: mysqlclient
  Building wheel for mysqlclient (setup.py) ... done
  Created wheel for mysqlclient: filename=mysqlclient-1.4.6-cp310-cp310-linux_x86_64.whl size=110169 sha256=528fd5589d47a6a8bca306c5729a8d4a466a8ca3135039fc98ccba80a9cead3d
  Stored in directory: /home/nook17/.cache/pip/wheels/16/4d/5c/a6d7ee5c91e7a1c06f6739a6fcf4f3387bf68722150bc323e8
Successfully built mysqlclient
Installing collected packages: mysqlclient
Successfully installed mysqlclient-1.4.6

As i see it installed successfull. I don't know why he ask me: Did you install mysqlclient?
django-tinymce shuld help me to find my mistake?

Hey nook17, if you're thinking that the error is caused by deleting that database then you can try recreating it through the mysql repl