views:

38

answers:

1

In runserver, I can view my website no problems. (viewing it through lynx on the same machine)

But when I view the same thing through apache, (passenger) I get an error like the following:

Could not import PROJ.APP.views Error was: No module named PROJ.views

It looks like a problem with the urlconf, but again that is the same between both runserver and not.

I have disabled admin & admin autodiscovery.

I have killed all running python instances & deleted all .pyc files. I don't use any {% url %} tags in any templates.

The question is in general, what type of things could be causing this?

solved it was a problem of relative imports. In some files I was importing APP.models instead of PROJ.APP.models.

A: 

SOLVED

It was a problem of relative imports. In some files I was importing APP.models instead of PROJ.APP.models.

The error wasn't giving any indication of which file was causing the problem. Once I changed all of them it was fine. Thanks, guys.

fastmultiplication