Django 1.7 on App Engine “ImportError: No module named msvcrt”

后端 未结 3 1998
天命终不由人
天命终不由人 2020-12-18 15:44

I\'m trying to upgrade Django to version 1.7 on a Google App Engine development server running on my Windows machine.

When trying to load the app, I get the followin

3条回答
  •  执念已碎
    2020-12-18 16:08

    Devserver doesn't provide access to modules that are on your system. It only looks at modules that are in your project. This is to ensure that if it runs on devserver, it will run when deployed. Either use the patched version of Django on your devserver, understanding that the OS will never be 'nt' on App Engine, or import msvcrt into your project so it can be found and put a skip_files line in app.yaml when you deploy, since it will never be needed when deployed to App Engine's non-windows environment.

提交回复
热议问题