ผลต่างระหว่างรุ่นของ "Fcamp"

จาก Theory Wiki
ไปยังการนำทาง ไปยังการค้นหา
 
(ไม่แสดง 19 รุ่นระหว่างกลางโดยผู้ใช้ 4 คน)
แถว 13: แถว 13:
 
* เริ่มต้นหัดเขียนโปรแกรม
 
* เริ่มต้นหัดเขียนโปรแกรม
 
** โปรแกรมแรกกับ Django
 
** โปรแกรมแรกกับ Django
 +
*** ไฟล์คอนฟิกที่แก้ไขแล้ว [http://theory.cpe.ku.ac.th/~jittat/fcamp/files/django-init/settings.py settings.py] [http://theory.cpe.ku.ac.th/~jittat/fcamp/files/django-init/urls.py urls.py]
 
** การส่งข้อมูลไปยัง template
 
** การส่งข้อมูลไปยัง template
** การรับอินพุตจาก form
+
** [[fcamp:การรับอินพุตจาก form|การรับอินพุตจาก form]]
 
** static files
 
** static files
 
** css
 
** css
แถว 22: แถว 23:
 
** template inheritance
 
** template inheritance
 
** django form library
 
** django form library
 +
*** [[fcamp:โครงการใช้ django form|โครงการใช้ django form]]
 +
*** เอกสารทั่วไป http://docs.djangoproject.com/en/dev/topics/forms/
 +
*** Widget: http://docs.djangoproject.com/en/dev/ref/forms/widgets/
  
 
'''เครื่องมือ''':
 
'''เครื่องมือ''':
 +
* Python: App Engine ต้องใช้ Python 2.5
 +
** สำหรับผู้ใช้ Windows ดาวน์โหลดที่ http://www.python.org/download/releases/2.5.4/
 +
** ผู้ใช้ Ubuntu สามารถใช้ Python หลายเวอร์ชันปนกันได้โดยใช้ Virtual Env
 +
* Django
 +
** ดาวน์โหลด: http://www.djangoproject.com/
 +
** ขั้นตอนการติดตั้ง: http://docs.djangoproject.com/en/dev/topics/install/
 +
* เอดิตเตอร์ดี ๆ สักตัว ที่สามารถทำ syntax highlighting และ code completion ได้:
 +
** ตัวใหญ่: http://www.eclipse.org/
 +
** ตัวกลาง: http://www.gnu.org/software/emacs/ (สำหรับ windows http://core.ring.gr.jp/pub/GNU/emacs/windows/emacs-23.2-bin-i386.zip)
 +
*** Emacs keyboard shortcuts http://www.engr.uvic.ca/~dastone/emacs-keys.html
 +
** ตัวเล็ก: http://notepad-plus-plus.org/
 +
** ตัวคลาสสิก: http://www.vim.org/
  
 
=== วันที่ 2: App Engine ===
 
=== วันที่ 2: App Engine ===
  
 
* เริ่มใช้ App Engine helper สำหรับ Django [http://code.google.com/p/google-app-engine-django/]
 
* เริ่มใช้ App Engine helper สำหรับ Django [http://code.google.com/p/google-app-engine-django/]
 +
** ดาวน์โหลดของ:
 +
*** ดาวน์โหลด app engine python SDK แบบที่เป็น zip ไฟล์ จาก http://code.google.com/appengine/downloads.html#Google_App_Engine_SDK_for_Python  (สำหรับผู้ใช้ windows ด้วยเช่นกัน ไม่ต้องโหลด ตัวที่เป็น installer .msi)
 +
*** ดาวน์โหลด django.zip จาก http://theory.cpe.ku.ac.th/~jittat/fcamp/files/django.zip
 +
*** ดาวน์โหลด app engine django helper: http://code.google.com/p/google-app-engine-django/  (โหลดไฟล์ zip)
 +
** สำหรับผู้ใช้ ubuntu:
 +
*** ติดตั้ง Python 2.5 http://www.inkjetgarden.com/code/0bu01/python-25-in-ubuntu-maverick
 +
*** ติดตั้ง virtual env: sudo apt-get install python-virtualenv
 +
** ติดตั้ง (จะระบุต่อไป)
 +
** ถ้าเรียก <tt>python manage.py runserver</tt> แล้วมีปัญหากับ fancy_urllib ให้แก้ไฟล์ตาม http://code.google.com/p/google-app-engine-django/issues/detail?id=178
 +
** [[fcamp:การแก้ไขสำหรับผู้ใช้ windows 7|การแก้ไขสำหรับผู้ใช้ windows 7]]
 
* Data store API
 
* Data store API
 
* Deployment
 
* Deployment
  
=== วันที่ 3: เครื่องมือเพิ่มพลัง ===
+
=== วันที่ 4: user, less, version control, test ===
 +
* [[fcamp:login_required|login_required]]
  
 
* Version control: [http://mercurial.selenic.com/ mercurial]
 
* Version control: [http://mercurial.selenic.com/ mercurial]
 
* Unit testing
 
* Unit testing
 +
* ขั้นตอนการทำให้สามารถใช้ hg view ใน windows
 +
** ติดตั้ง ActiveTcl [http://www.activestate.com/store/activetcl/download/]
 +
** ค้นหา file Mercurial.ini ในเครื่องของเราจากนั้น เพิ่ม ข้อความ
 +
  [extensions]
 +
  hgext.hgk =
 +
** จากนั้นไป save file จาก link [http://hg.intevation.org/mercurial/crew/raw-file/b43db44cd047/contrib/hgk] แล้ว save เป็นชื่อ hgk.tcl
 +
** นำไฟล์ hgk.tcl ไปวางไว้สักที่เช่น C:\Program Files\Mercurial
 +
** เพิ่มข้อความใน file Mercurial.ini
 +
  [hgk]
 +
  path=C:\Program Files\Mercurial\hgk.tcl
 +
**ลองสั่ง hg view
  
 
=== วันที่ 4 ===
 
=== วันที่ 4 ===
  
 
=== วันที่ 5 ===
 
=== วันที่ 5 ===

รุ่นแก้ไขปัจจุบันเมื่อ 03:34, 29 ตุลาคม 2553

หน้านี้เป็นหน้าสำหรับรวบรวมข้อมูลสำหรับการอบรม fcamp

ลิงก์ด่วน

เนื้อหาและเอกสารประกอบ

วันที่ 1: Django ที่ไม่มีฐานข้อมูล

เครื่องมือ:

วันที่ 2: App Engine

วันที่ 4: user, less, version control, test

  • Version control: mercurial
  • Unit testing
  • ขั้นตอนการทำให้สามารถใช้ hg view ใน windows
    • ติดตั้ง ActiveTcl [2]
    • ค้นหา file Mercurial.ini ในเครื่องของเราจากนั้น เพิ่ม ข้อความ
 [extensions] 
 hgext.hgk =
    • จากนั้นไป save file จาก link [3] แล้ว save เป็นชื่อ hgk.tcl
    • นำไฟล์ hgk.tcl ไปวางไว้สักที่เช่น C:\Program Files\Mercurial
    • เพิ่มข้อความใน file Mercurial.ini
 [hgk]
 path=C:\Program Files\Mercurial\hgk.tcl
    • ลองสั่ง hg view

วันที่ 4

วันที่ 5