Reply
Upcoming SlideShare
Loading in...5
×
 

Like this? Share it with your network

Share

Reply

on

  • 770 views

Reply

Reply

Statistics

Views

Total Views
770
Views on SlideShare
765
Embed Views
5

Actions

Likes
0
Downloads
4
Comments
0

1 Embed 5

http://www.slideshare.net 5

Accessibility

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Reply Presentation 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.
    • 公众看到的部分
    • 一直在变化
    • 多种多样
    • 有趣
    • 后台管理界面
    • 一直一样
    • 用户认证
    • 表单显示
    • 表单处理
    • 权限分配
  • 32. admin
  • 33. from django.contrib import admin from teachingweb.work.models import * class WorkAdmin(admin.ModelAdmin): list_display = ('class_name', 'question','student','work_file','work_remark','pub_date','link_work','download') list_display_links = ('work_file','link_work') list_filter = ['class_name'] search_fields = ['question'] 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.  
  • 37.  
  • 38.  
  • 39.  
  • 40. 毕设作品的完成 ≠ 学习的终止
  • 41. 静态 WEB 开发方面 北京拓佳装饰公司网站 http://www.bjtuojia.com /
  • 42.  
  • 43. 动态 WEB 开发方面 GAE http://muhaibolove.appspot.com/
  • 44.  
  • 45. Thanks!!!