在Google App Engine上部署Django项目 [英] Deploy Django project on Google App Engine

查看:50
本文介绍了在Google App Engine上部署Django项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在django1.4&中开发了一个示例项目.python 2.7,我想将其部署在Google App Engine上,但是如何按照我们未获得的App Engine配置项目.

I have developed one example project in django1.4 & python 2.7, I want to deploy it on google app engine, but how to configure my project as per App Engine we didn't get.

我们有一个在Google App Engine上运行的网站,但它包含所有html,js.

We have a site running on google app engine, but it is including with all html,js.

我们如何在Google App Engine上配置数据库以部署django项目?

How do we configure a database on google app engine to deploy our django project?

推荐答案

可能最好的选择是使用Django Non-Rel.(据我所知)这是在Google App Engine上使用Django ORM(django数据库接口)而不使用Google昂贵的云SQL服务的唯一方法.为此,您需要使用Django的自定义版本并导入更多库.这是一个启动并运行它的小项目,但是值得付出努力.可以在以下网站上找到更多信息:

Possibly the best option is to use Django Non-Rel. It's the only way (that I know of) to use the Django ORM (the django database interface) on Google App Engine without using Google's costly cloud SQL service. To do this, you'll need to use a customized version of Django and import several more libraries. It's a small project to get it up and running, but it's worth the effort. More information can be found on this website:

http://django-nonrel.org/

请注意,即使django-nonrel允许您使用Django数据库接口,也将不允许允许您使用某些SQL功能,例如联接.如果需要加入,那么最好的选择是使用Google App Engine + Google Cloud SQL.此处的文档.

Note, that even though django-nonrel allows you to use the Django database interface, it will not allow you to use certain SQL features, such as joins. If you need joins, then your best option would be to use Google App Engine + Google Cloud SQL. Documentation for that is here.

关于评论:

  • 是的,它可以在Windows上运行,我可以在Windows上运行.
  • 此外,网站allbuttonspressed.com既旧又过时,请使用以上是一则信息.

这篇关于在Google App Engine上部署Django项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆