Django on Google App Engine

前端 未结 7 1749
终归单人心
终归单人心 2020-12-02 14:47

How much of a pain is it to run a Django App on App Engine? Also, does the Datastore work as-is with Django?

7条回答
  •  佛祖请我去吃肉
    2020-12-02 15:39

    I spent some time trying to answer the same question... it seems to me that the most difficult thing to transfer to GAE are django's models... in the sense that they require various modifications and rethinking, mainly because GAE's backend is not a standard relational DB, but google's BigTable. I found a nice intro to this here:

    http://www.youtube.com/watch?v=rRCx9e38yr8

    Anyways, it's worth downloading one of those 'patches' and have a go with it!

    For me the best solution is the 'app-engine-patch'. I downloaded the sample project and it worked straightaway! (Mind that you need to have GAE's SDK installed separately) A killer-feature for me is the fact that the django-admin and many other classic django functionalities have been ported too!!!

    http://code.google.com/p/app-engine-patch/

    The documentation is still quite minimal in my opinion, but it's good enough to get you going. It'll help you to skim though the official GAE docs though!

提交回复
热议问题