Best Django features that do work on Google App Engine?

后端 未结 4 1932
我寻月下人不归
我寻月下人不归 2021-02-06 13:11

I\'m in the process of starting a new project on App Engine and Brandon\'s advice made me think.

Many features of Django don\'t work on Google App Engine: the ad

4条回答
  •  栀梦
    栀梦 (楼主)
    2021-02-06 13:58

    The main differences is what you already know that it does not support Admin and Django's (excellent) ORM ofcourse. This isn't surprising, though, since Google's own Datastore API is excellent. And you don't have to learn GQL to play with it.

    But using Django means that you can take advantage of more existing functionality (Django middleware, etc.) and, should you want to move away from Google App Engine in the future, there will be less code to rewrite.

    Also Google released the Google App Engine Helper for Django which can be helpful to you in setting GAE Django app.

    So, i would rather go for Google App Engine applications using Django instead of pure webapp.

    Edit on Request: Django's existing functionality i mentioned, can be taken in terms of many useful applications and mostly middlewares being developed by a huge DJango Community day by day.

    Apart from useful Built-in-Middlewares provided by DJango itself, there are many others which can suite few specific usage too.

    To name few (which sound interesting to me):

    • Google Analytics DJango Middleware
    • YUI Loader as Django middleware
    • Django domain redirect middleware
    • ForceHTTPS Django middleware etc...

    And to play with them efficiently "Conditional middleware execution in Django" can be handy.

    Search for more, you will find more.

提交回复
热议问题