Tags:

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:

  1. ลง Django 1.0 บนเครื่องก่อนครับ ถ้ามี Python หลายเวอร์ชั่น ให้ใช้ลงไว้ที่เวอร์ชั่นเดียวกันกับ GAE SDK ครับ
  2. ใน 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 มากขึ้นในไม่ช้านี่แน่นอนครับ

Download Python SDK 1.2.3

ที่มา: Google App Engine Blog, SdkReleaseNotes

Comments

By: mr.k
mr.k's blog
on 20/06/09 9:21 #109370 toggle
mr.k's picture

---ผิดครับ

By: SilliCon
Android
SilliCon's blog
on 20/06/09 9:23 #109372 toggle
SilliCon's picture

ครับ ว่าแต่ Django คืออะไรหว่า????

By: mk
FounderAndroidRed HatWindows
mk's blog
on 20/06/09 10:37 #109375 Reply to:109372 toggle
mk's picture

Wikipedia มีทุกๆ คำตอบ

By: crucifier
crucifier's blog
on 20/06/09 12:15 #109383 Reply to:109375 toggle
crucifier's picture

คุณ mk เป็นคนไม่กี่คน ที่มีวลีทำนองให้ใช้ wikipedia ส่วนมากจะได้ยินว่าให้ใช้ Google สิจนชินหูไปแล้ว :)


ผมเป็นศิลปินทำงานศิลปะด้วยการเขียนโปรแกรม

By: Jessy
Red HatSymbianUbuntuWindows
Jessy's blog
on 20/06/09 12:21 #109384 toggle
Jessy's picture

ถ้าคงพัฒนาเป็นคนไทย ตั้งชื่อได้พิลึกน่าดู D-jan-go คิดเล่นๆ นะ

By: kittipat
ContributorAndroidUbuntu
kittipat's blog
on 20/06/09 17:30 #109404 toggle
kittipat's picture

กรรม ลืมดูว่ามี update เมื่อวานเพิ่งจะลองใช้ django helper ไปหยกๆ เสียเวลาโดยใช่เหตุ


@kittipatv

http://kittipatv.wordpress.com

By: wiennat
Writer
wiennat's blog
on 21/06/09 11:23 #109509 Reply to:109404 toggle
wiennat's picture

อ่าว นึกว่าใช้ app-engine-patch

onedd.net


onedd.net

By: tomyum
ContributorAndroidWindows
tomyum's blog
on 20/06/09 21:26 #109420 toggle
tomyum's picture

ไปอ่าน Wikipedia ตามคำแนะนำของคุณมาร์คมาแล้ว เค้าอ่านว่า "จังโก้" ใช่ไหมครับ ไม่ใช่ "ดีจังโก้" นะ?

\(@^_^@)/

M R T O M Y U M


\(@^_^@)/ my Google+ M R T O M Y U M

By: crucifier
crucifier's blog
on 20/06/09 22:33 #109428 Reply to:109420 toggle
crucifier's picture

ใช่แล้วครับ :)


ผมเป็นศิลปินทำงานศิลปะด้วยการเขียนโปรแกรม

By: tonkla
Ubuntu
tonkla's blog
on 20/06/09 22:38 #109431 toggle
tonkla's picture

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

By: ipas
Ubuntu
ipas's blog
on 21/06/09 15:08 #109528 toggle
ipas's picture

:-) เรื่องสนุกๆ ของคนรัก Python