วันเสาร์ที่ 17 ธันวาคม พ.ศ. 2559
วิธีติดตั้งใช้งานโปรเจ็ค
โคลนโปรเจคจาก bitbucket ผ่านทาง terminal ได้ผ่านทางคำสั่งนี้git clone https://bitbucket.org/phongyanon/announce_demo.gitสำหรับ os ที่ใช้งานนั้นคือ ubuntu 14.04LTS จากนั้นให้ติดตั้ง python library ดังต่อไปนี้
การใช้งาน web driver selenium ให้ติดตั้ง firefox version 46.0.1
set xs ของการแสดงเวลา
แก้ปุ่ม programs เป็น
http://www.askmetutorials.com/2016/04/install-firefox-46-on-ubuntu-1604-1404.html
1. update ubuntu
sudo apt-get update
2. ติดตั้ง pip เพื่อใช้งานติดตั้ง python library
sudo apt-get install python-pip
3. ติดตั้ง django-cms เวอร์ชั่น 3.2
pip install django-cms==3.2.3
4. ติดตั้ง django-treebeard เพื่อช่วยในการจัดการ django framework
pip install django-treebeard>=2.0
5. ติดตั้ง djangocms-admin-style เวอร์ชั่น 1.0.6
pip install djangocms-admin-style>=1.0.6
6. ติดตั้ง django เวอร์ชั่น 1.8.11
pip install Django==1.8.11
7. ติดตั้ง pytz เกี่ยวกับการจัดการ timezone
pip install pytz
8. ติดตั้ง django-reversion ใช้ในการควบคุมเวอร์ชั่นของ model ใน django
pip install django-reversion>=1.8.7,<1.9
9. ติดตั้ง django-classy-tags เวอร์ชั่น 0.3.4.1
pip install django-classy-tags>=0.3.4.1
10. ติดตั้ง html5lib เพื่อช่วย python ในก่ารจัดการ html5
pip install html5lib==0.9999999
11. ติดตั้ง Pillow เวอร์ชั่น 2.3 ช่วยในการจัดการรูปภาพ
pip install Pillow>=2.3
12. ติดตั้ง django-sekizu เวอร์ชั่น 0.7
pip install django-sekizai>=0.7
13. ติดตั้ง six ช่วยในการทำงานระหว่าง python ที่เวอร์ชั่นแตกต่างกัน
pip install six
14. ติดตั้ง djangocms_text_ckeditor
pip install djangocms-text-ckeditor==2.9.0
15. ติดตั้ง djangocms_style
pip install
16. ติดตั้ง djangocms-admin-style
pip install djangocms-admin-style>=1.0.6
17. ติดตั้ง djangocms_column
pip install djangocms-column==1.6.0
18. ติดตั้ง djangocms_file
pip install djangocms-file==1.0
19. ติดตั้ง djnagocms_googlemap
pip install djangocms-googlemap==0.4.0
20. ติดตั้ง djangocms_inherit
pip install djangocms-inherit==0.1.1
21. ติดตั้ง djangocms_link
pip install djangocms-link==1.7.2
22. ติดตั้ง djangocms_picture
pip install djangocms-picture==0.2.0
23. ติดตั้ง djangocms_teaser
pip install djangocms-teaser==0.2.0
24. ติดตั้ง djangocms_video
pip install djangocms-video==1.0.0
25. ติดตั้ง easy-thumbnails
pip install easy-thumbnails==2.3
26. ติดตั้ง django-filer
pip install django-filer==1.1.1
27. ติดตั้ง aldryn-apphooks-config
pip install aldryn-apphooks-config==0.2.7
28. ติดตั้ง aldryn-boilerplates
pip install aldryn-boilerplates==0.7.4
29. ติดตั้ง aldryn-categories
pip install aldryn-categories==1.0.2
30. ติดตั้ง aldryn-common
pip install aldryn-common==1.0.1
31. ติดตั้ง aldryn-newsblog
pip install aldryn-newsblog==1.2.1
32. ติดตั้ง aldryn-people
pip install aldryn-people==1.2.0
33. ติดตั้ง cmsplugin-filer
pip install cmsplugin-filer==1.0.1
34. ติดตั้ง polls
pip install django-polls==0.1.4
35. ติดตั้ง djangocms-style
pip install djangocms-style==1.7.0
35. แตกไฟล์โปรเจ็คที่ดาวน์โหลดมาจากนั้นตั้งชื่อไดเรกทอรีใหม่ว่า announce_project ให้เข้าไปยังไดเรกทอรีนั้น
cd announce_project
36. ทำการสร้างฐานข้อมูลด้วยคำสั่งดังนี้
python manage.py makemigrations
python manage.py migrate
37. ทดลองเปิด server
python manage.py runserver
38. เปิดเว็บด้วย url localhost:8000/en/viewer จะได้ผลดังรูปด้านล่าง
สมัครสมาชิก:
ส่งความคิดเห็น
(
Atom
)

ไม่มีความคิดเห็น :
แสดงความคิดเห็น