Reply
Upcoming SlideShare
Loading in...5
×
 

Reply

on

  • 727 views

Reply

Reply

Statistics

Views

Total Views
727
Slideshare-icon Views on SlideShare
722
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 Reply Presentation Transcript

    • 基于 Django 开发的教学管理系统
    •  
    • 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
    •  
    • M - T - V models templates views
    • Project hosting http://code.google.com/p/bcuteachingweb/
    • 什么是版本控制? Mercurial HG 版本控制
    • 华丽的分割线
    • 分为三个 app 前台 后台管理系统 考试系统
    • 前台
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    • Generic views
    • # 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
    • 后台
    • 专业 作业题目 教师 学生 作业 分数 models 关系图
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
      • 公众看到的部分
      • 一直在变化
      • 多种多样
      • 有趣
      • 后台管理界面
      • 一直一样
      • 用户认证
      • 表单显示
      • 表单处理
      • 权限分配
    • admin
    • 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
    • 考试系统
    • models 关系图 试卷类别 考题 选项
    •  
    •  
    •  
    •  
    • 毕设作品的完成 ≠ 学习的终止
    • 静态 WEB 开发方面 北京拓佳装饰公司网站 http://www.bjtuojia.com /
    •  
    • 动态 WEB 开发方面 GAE http://muhaibolove.appspot.com/
    •  
    • Thanks!!!