Forums

Error running WSGI application

.

2019-05-04 05:33:21,856: Error running WSGI application
2019-05-04 05:33:21,858:   File "/var/www/infinity2462_pythonanywhere_com_wsgi.py", line 86
2019-05-04 05:33:21,858: 
2019-05-04 05:33:21,858:     os.environ['DJANGO_SETTINGS_MODULE'] = 'least.settings'
2019-05-04 05:33:21,858: 
2019-05-04 05:33:21,858:      ^
2019-05-04 05:33:21,858: 
2019-05-04 05:33:21,858: IndentationError: expected an indented block
2019-05-04 05:33:21,859: ***************************************************
2019-05-04 05:33:21,859: If you're seeing an import error and don't know why,
2019-05-04 05:33:21,859: we have a dedicated help page to help you debug: 
2019-05-04 05:33:21,859: https://help.pythonanywhere.com/pages/DebuggingImportError/
2019-05-04 05:33:21,859: ***************************************************
2019-05-04 05:33:26,847: Error running WSGI application
2019-05-04 05:33:26,847:   File "/var/www/infinity2462_pythonanywhere_com_wsgi.py", line 86
2019-05-04 05:33:26,848: 
2019-05-04 05:33:26,848:     os.environ['DJANGO_SETTINGS_MODULE'] = 'least.settings'
2019-05-04 05:33:26,848: 
2019-05-04 05:33:26,848:      ^
2019-05-04 05:33:26,848: 
2019-05-04 05:33:26,848: IndentationError: expected an indented block

I dont know why it make error like this ,after this it not see least.setting too,

[edit by admin: formatting]

enter image description here

enter image description here

enter image description here

enter image description here

It looks like the links you provided weren't valid; could you post the contents of your WSGI file? It looks like you have a syntax error in it.

do u find solution of this error? i have same error also..please help.

I solve my error. make sure you have to uncomment this line......

if path not in sys.path:
    sys.path.append(path)

This line is just above your line 86.....