Forums

Django page something went wrong, removed my directory and made a new one but for some reason keeps excecuting old removed python scripts

Hello all Thing is, since I'm new developing django I made mistakes so I removed the folder of the project I did, followed this tutorial https://www.dj4e.com/lessons/dj4e_install and changed the WSGI configuration file to point to the new file (project_home = '/home/eni86/prueba') and the paths are setted correctly, but when I run the reload the site, it gives me the "something went wrong" error and in the log files it says

ModuleNotFoundError: No module named 'mypersonalwebsite'
2021-04-08 15:52:11,697:   File "/var/www/eni86_pythonanywhere_com_wsgi.py", line 22, in <module>
2021-04-08 15:52:11,697:     application = get_wsgi_application()

How do I solve this? Thanks in advance Jenifer

Can we take a look at your files? We can see them from our admin interface, but we always ask for permission first.

Sure, the quicker this issue is solved, the better.

The path that you set in line 12 of your wsgi file is missing the directory your django project is placed.

It is

project_home = '/home/eni86/prueba'

should be

project_home = '/home/eni86/django-projects/prueba/'

Also, your settings are in prueba module not mypersonalwebsite