Forums

No module named models

Hello, I am having this import error "ImportError at /

No module named models"

Please let me what I can do to fix this. My customer is pretty angry that I cannot deliver the site today. I just migrated my services to pythonanywhere, hoping that I will get the best service for my bucks... I hope this is resolvable. I am using mezzanine to build my apps and this specific app was manyally imported. I appended the project dir to all my import modules as well

here is my wsgi file

+++++++++++ DJANGO +++++++++++

import os import sys path = '/home/myaccount/' sys.path.append(path) path = '/home/myaccount/my_project_dir/' sys.path.append(path) os.environ['DJANGO_SETTINGS_MODULE'] = 'my_project_dir.settings' import django.core.handlers.wsgi application = django.core.handlers.wsgi.WSGIHandler()

Guys, I figured it out. It was the virtual environments issues. But nw I have another issue. All my page design and admin is missing :-( I used the static mappings... but, still doesn't work. The admin static files is also missing. Help...

Ok Guys, I am all set now. I had to think like a pythoner. it was pretty straight forward. my directories were not mapped right i guess.

@bema: Congrats!!!! It's always such a wonderful feeling when we conquer the beast...

͡° ͜ʖ ͡°