Forums

Error running WSGI application : TypeError: tuple indices must be integers or slices ?

The index page was working last night, made no changes and then got this error when I reloaded the page (same error when I try to make migrations from the error log:

2018-03-27 16:26:07,821: Error running WSGI application 2018-03-27 16:26:07,837: TypeError: tuple indices must be integers or slices, not str 2018-03-27 16:26:07,837: File "/var/www/mwshovel_pythonanywhere_com_wsgi.py", line 20, in <module> 2018-03-27 16:26:07,837: application = get_wsgi_application()

That's a strange one. Given that it looks like it's happening when Django is loading the settings, I'm guessing that the problem is somewhere in your settings. Try commenting out pieces of your settings to see when it goes away.

Since it was working before. My guess is that you had made changes and then not reloaded your web app. Then overnight, your web app may have been reloaded, so it was using the new code that is broken. Try reversing the changes you made.

its too late, I have tried commenting out things and changed the db settings... oh well

ok- were you able to resolve this?

started from scratch .... it works now except for migrations

started from scratch .... it works now except for migrations