django - Error importing module -


i'm developing application using django 1.2 on google-app-engine (sdk 1.7.5). when test application locally using dev_appserver works, , works when upload on google's servers. problem application doesn't work if try newer sdk (i tried version 1.8.0) locally. error reported:

improperlyconfigured: error importing middleware authentication.middleware: "no module named authentication.models"

in middleware_classes import:

'authentication.middleware.accessfiltermiddleware' 

that i've developed. problem inside module import "models" in root directory (the folder in contained authentication package), tries search inside authentication package. i've tried use

import .. models 

but in case error thrown is:

valueerror: attempted relative import beyond toplevel package

thank you


Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

css - Firefox for ubuntu renders wrong colors -