From 381d24758961355410f69e0d95aee99ad9262742 Mon Sep 17 00:00:00 2001 From: ichuang Date: Tue, 31 Jul 2012 21:43:29 -0400 Subject: [PATCH] djangoapps/student/views.py now uses soup.getText, which needs beautifulsoup4 --- cms/envs/dev.py | 3 ++- common/djangoapps/student/views.py | 3 ++- requirements.txt | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/cms/envs/dev.py b/cms/envs/dev.py index b0729ba885..59bc623729 100644 --- a/cms/envs/dev.py +++ b/cms/envs/dev.py @@ -37,7 +37,8 @@ REPOS = { }, 'content-mit-6002x': { 'branch': 'master', - 'origin': 'git@github.com:MITx/6002x-fall-2012.git', + #'origin': 'git@github.com:MITx/6002x-fall-2012.git', + 'origin': 'git@github.com:MITx/content-mit-6002x.git', }, '6.00x': { 'branch': 'master', diff --git a/common/djangoapps/student/views.py b/common/djangoapps/student/views.py index eeda9a6b65..b739e0e37c 100644 --- a/common/djangoapps/student/views.py +++ b/common/djangoapps/student/views.py @@ -23,7 +23,8 @@ from django.http import HttpResponse, Http404 from django.shortcuts import redirect from mitxmako.shortcuts import render_to_response, render_to_string from django.core.urlresolvers import reverse -from BeautifulSoup import BeautifulSoup +#from BeautifulSoup import BeautifulSoup +from bs4 import BeautifulSoup from django.core.cache import cache from django_future.csrf import ensure_csrf_cookie diff --git a/requirements.txt b/requirements.txt index 978b5e6f1a..48362c69ed 100644 --- a/requirements.txt +++ b/requirements.txt @@ -14,7 +14,8 @@ django_debug_toolbar -e git://github.com/MITx/django-pipeline.git#egg=django-pipeline django-staticfiles>=1.2.1 fs -beautifulsoup +beautifulsoup +beautifulsoup4 feedparser requests sympy