Google App Engine Python SDK ออกรุ่น 1.2.3 แล้วครับ และที่มาเขียนข่าวเรื่องนี้ก็เพราะว่ามีบรรทัดหนึ่งที่น่าสนใจจากหน้า Release Notes:
Last but not least, the 1.2.3 release is full of other new stuff as well! Stay tuned to the blog for more updates or check the release notes for exciting info on:
- Asynchronous urlfetch support
- Django 1.0 support
นั่นก็คือบรรทัดที่เขียนว่า Django 1.0 support ครับ จากการที่เสียเวลาโมแอปตัวเองให้ใช้ Django ได้อยู่นานก็เลยตามเข้าไปดูถึง Release Notes และใน Tracker Issue #872 ก็พบ คอมเม้นท์จากคุณ Guido Van Rossum เจ้าพ่อ Python มาเขียนไว้ครับ กดเข้าไปอ่านดูได้ แต่ตรงนี้ขอสรุปเป็นใจความสั้นๆ ให้ก็แล้วกัน:
วิธีใช้ Django 1.0:
- ลง Django 1.0 บนเครื่องก่อนครับ ถ้ามี Python หลายเวอร์ชั่น ให้ใช้ลงไว้ที่เวอร์ชั่นเดียวกันกับ GAE SDK ครับ
- ใน App โหลด Django ด้วยคำสั่ง use_library ตามนี้:
from google.appengine.dist import use_library use_library('django', '1.0')
ซึ่งหมายความว่าตอนนี้ไม่ต้องฝัง Django ลงไปแล้วครับ ไม่ว่าจะฝังทั้งก้อน หรือฝังแล้วโหลดผ่าน ZipImport เรียกขึ้นมาด้วย use_library ได้เลย แต่ว่าเวอร์ชั่น Default ตอนนี้จะเป็น 0.96 นะครับ ใครจะใช้ 1.0 ต้องระบุลงไปตรงๆ
ผมคิดว่าถ้า Google มาแบบนี้แล้ว ในอนาคต Datastore API/Users API ฯลฯ น่าจะ Compatible กับ Django มากขึ้นในไม่ช้านี่แน่นอนครับ
on
---ผิดครับ
mr.k Sat, 20/06/2009 - 10:21
---ผิดครับ
ครับ
SilliCon Sat, 20/06/2009 - 10:23
ครับ ว่าแต่ Django คืออะไรหว่า????
Wikipedia มีทุกๆ
mk Sat, 20/06/2009 - 11:37
In reply to ครับ by SilliCon
Wikipedia มีทุกๆ คำตอบ
คุณ mk
crucifier Sat, 20/06/2009 - 13:15
In reply to Wikipedia มีทุกๆ by mk
คุณ mk เป็นคนไม่กี่คน ที่มีวลีทำนองให้ใช้ wikipedia ส่วนมากจะได้ยินว่าให้ใช้ Google สิจนชินหูไปแล้ว :)
ถ้าคงพัฒน
Jessy Sat, 20/06/2009 - 13:21
ถ้าคงพัฒนาเป็นคนไทย ตั้งชื่อได้พิลึกน่าดู D-jan-go คิดเล่นๆ นะ
กรรม
kittipat Sat, 20/06/2009 - 18:30
กรรม ลืมดูว่ามี update เมื่อวานเพิ่งจะลองใช้ django helper ไปหยกๆ เสียเวลาโดยใช่เหตุ
อ่าว
wiennat Sun, 21/06/2009 - 12:23
In reply to กรรม by kittipat
อ่าว นึกว่าใช้ app-engine-patch
onedd.net
ไปอ่าน Wikipedia
tomyum Sat, 20/06/2009 - 22:26
ไปอ่าน Wikipedia ตามคำแนะนำของคุณมาร์คมาแล้ว เค้าอ่านว่า "จังโก้" ใช่ไหมครับ ไม่ใช่ "ดีจังโก้" นะ?
\(@^_^@)/
M R T O M Y U M
ใช่แล้วคร
crucifier Sat, 20/06/2009 - 23:33
In reply to ไปอ่าน Wikipedia by tomyum
ใช่แล้วครับ :)
FAQ: Now that Django 1.0 is
tonkla Sat, 20/06/2009 - 23:38
FAQ: Now that Django 1.0 is integrated with the latest App Engine release should I still use app-engine-patch?
Yes! The Django 1.0 version that is integrated with App Engine does not run out-of-the-box! Basically, you only get the template system. You can't use django.forms, django.contrib.auth, django.contrib.admin, and so on. Also, load times shouldn't be faster because only a minor part of Django is pre-loaded into memory. You still have to load the rest which is what slows it down.
app-engine-patch
:-)
ipas Sun, 21/06/2009 - 16:08
:-) เรื่องสนุกๆ ของคนรัก Python