简体   繁体   English

是否可以在Google App Engine上使用Django 1.2?

[英]Is it possible to use Django 1.2 on Google App Engine?

I want to use the in operator in my Google App Engine project which was introduced in Django 1.2 : 我想在Django 1.2中引入的我的Google App Engine项目中使用in运算符:

{% if "bc" in "abcdef" %}
  This appears since "bc" is a substring of "abcdef"
{% endif %}

I found out that is possible to use version 1.0 or 1.1on GAE, but nothing for 1.2. 发现有可能使用版本1.0或1.1on GAE,但没有1.2。 Is it possible? 可能吗?

看起来是这样,我发现了这个 - http://www.deck.cc/django_1.2_on_google_app_engine.html

You can bundle any version of Django with your application and deploy it. 您可以将任何版本的Django与您的应用程序捆绑在一起并进行部署。

Django 1.2.4 will almost certainly be included in the next release of App Engine; Django 1.2.4几乎肯定会包含在App Engine的下一个版本中; it's in the pre-release SDK 1.4.2 that was put out late last week. 这是在上周晚些时候推出预发布SDK 1.4.2中。 Assuming nothing goes horribly wrong, the prerelease features usually make it to the production site in a week or two. 假设没有任何可怕的错误,预发布功能通常会在一两周内到达生产站点。

我不知道你是否可以使用那个版本,但是你当然应该可以使用SmileyChris的smart_if片段 ,它是Django 1.2中扩展if功能的基础。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM