Explain django settings imports

This commit is contained in:
Vik Paruchuri
2013-02-04 16:57:09 -05:00
parent c4c674367f
commit 5d8aade8e7
2 changed files with 8 additions and 1 deletions

View File

@@ -13,6 +13,10 @@ from urlparse import urlparse
import requests
from boto.s3.connection import S3Connection
from boto.s3.key import Key
#TODO: Settings import is needed now in order to specify the URL and keys for amazon s3 (to upload images).
#Eventually, the goal is to replace the global django settings import with settings specifically
#for this module. There is no easy way to do this now, so piggybacking on the django settings
#makes sense.
from django.conf import settings
import pickle
import logging

View File

@@ -4,8 +4,11 @@ import requests
from requests.exceptions import RequestException, ConnectionError, HTTPError
import sys
#TODO: Settings import is needed now in order to specify the URL where to find the peer grading service.
#Eventually, the goal is to replace the global django settings import with settings specifically
#for this xmodule. There is no easy way to do this now, so piggybacking on the django settings
#makes sense.
from django.conf import settings
from django.http import HttpResponse, Http404
from combined_open_ended_rubric import CombinedOpenEndedRubric, RubricParsingError
from lxml import etree