Your SlideShare is downloading. ×
0
Reply
Reply
Reply
Reply
Reply
Reply
Reply
Reply
Reply
Reply
Reply
Reply
Reply
Reply
Reply
Reply
Reply
Reply
Reply
Reply
Reply
Reply
Reply
Reply
Reply
Reply
Reply
Reply
Reply
Reply
Reply
Reply
Reply
Reply
Reply
Reply
Reply
Reply
Reply
Reply
Reply
Reply
Reply
Reply
Reply
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Reply

609

Published on

Reply

Reply

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
609
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
5
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. 基于 Django 开发的教学管理系统
  • 2.  
  • 3. a=1,b=2 变为 a=2,b=1 Python a=1 , b=2 a,b = b,a 通常情况下 a=1 , b=2 t =a,a=b,b= t
  • 4.  
  • 5. M - T - V models templates views
  • 6. Project hosting http://code.google.com/p/bcuteachingweb/
  • 7. 什么是版本控制? Mercurial HG 版本控制
  • 8. 华丽的分割线
  • 9. 分为三个 app 前台 后台管理系统 考试系统
  • 10. 前台
  • 11.  
  • 12.  
  • 13.  
  • 14.  
  • 15.  
  • 16.  
  • 17.  
  • 18. Generic views
  • 19. # encoding: utf-8 from django.http import HttpResponse from django.shortcuts import render_to_response from info.models import * def index(request): news = News.objects.order_by('-pub_date')[:3] c = TCorner.objects.order_by('-pub_date')[:3] return render_to_response("index.html",locals()) def teachers(request): data = [TCorner.objects.order_by('t_name')[:3], TCorner.objects.order_by('t_name')[3:]] print data return render_to_response("info/tcorner_list.html",locals()) views.py
  • 20. 后台
  • 21. 专业 作业题目 教师 学生 作业 分数 models 关系图
  • 22.  
  • 23.  
  • 24.  
  • 25.  
  • 26.  
  • 27.  
  • 28.  
  • 29.  
  • 30.  
  • 31. <ul><li>公众看到的部分 </li></ul><ul><li>一直在变化 </li></ul><ul><li>多种多样 </li></ul><ul><li>有趣 </li></ul><ul><li>后台管理界面 </li></ul><ul><li>一直一样 </li></ul><ul><li>用户认证 </li></ul><ul><li>表单显示 </li></ul><ul><li>表单处理 </li></ul><ul><li>权限分配 </li></ul>
  • 32. admin
  • 33. from django.contrib import admin from teachingweb.work.models import * class WorkAdmin(admin.ModelAdmin): list_display = (&apos;class_name&apos;, &apos;question&apos;,&apos;student&apos;,&apos;work_file&apos;,&apos;work_remark&apos;,&apos;pub_date&apos;,&apos;link_work&apos;,&apos;download&apos;) list_display_links = (&apos;work_file&apos;,&apos;link_work&apos;) list_filter = [&apos;class_name&apos;] search_fields = [&apos;question&apos;] admin.site.register(Teacher) admin.site.register(ClassName) admin.site.register(Question) admin.site.register(Courseware) admin.site.register(Student) admin.site.register(Work,WorkAdmin) admin.site.register(TeachPro) admin.py
  • 34. 考试系统
  • 35. models 关系图 试卷类别 考题 选项
  • 36. &nbsp;
  • 37. &nbsp;
  • 38. &nbsp;
  • 39. &nbsp;
  • 40. 毕设作品的完成 ≠ 学习的终止
  • 41. 静态 WEB 开发方面 北京拓佳装饰公司网站 http://www.bjtuojia.com /
  • 42. &nbsp;
  • 43. 动态 WEB 开发方面 GAE http://muhaibolove.appspot.com/
  • 44. &nbsp;
  • 45. Thanks!!!

×