[Django]-App working perfectly in Local machine but not on Pythonanywhere.com

4👍

Your problem in this line

from models import Post,Comment,User_Detailed_Info

You are using python 3.5 on Pythonanywhere.com and this version of python use absolute importing by default. Replace it with

from posts.models import Post,Comment,User_Detailed_Info

For more read.
https://www.python.org/dev/peps/pep-0328/

1👍

you are importing

 from models import Post,Comment,User_Detailed_Info

in your settings files i see that your module is post that you need to call

 from posts.models import Post,Comment,User_Detailed_Info

Leave a comment