Skip to content

wwj718/edx_manager_rest

Repository files navigation

edx_manager_rest

RESTful API for edx studio and lms

设计

  • 作为restful服务
  • 实际是一个胶水层(桥接模式(Bridge Pattern))

功能

edx_lms_rest.py

  • 批量选修/退选课程

edx_cms_rest.py

  • 创建课程
  • 添加课程老师

Usage

  • mv local.yaml.template local.yaml
  • mv local_lms.yaml.template local_lms.yaml
  • 登录lms和studio,填入csrftoken和sessionid
  • 使用方法参考test文件

todo

  • 批量注册用户:采用management机制,app下面创建management/commands/hello.py
    • 目的是为了让用户提前存在,认证方面是采用cas
    • 了解oracle在ubuntu下的驱动
    • 放弃oracle,采用csv来交换格式吧
    • 读取表格部分采用pandas吧
from django.core.management.base import BaseCommand, CommandError
from django.db import models
#from placeholders import *
import os
    
class Command(BaseCommand):
     def handle(self, *args, **options):
         print 'hello, django!'

参考

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages