Commit df4b512b by Ned Batchelder

Change wildcard imports into specific imports

parent e045860c
from django.conf.urls import *
from django.conf.urls import url, patterns
urlpatterns = patterns('', # nopep8
url(r'^$', 'heartbeat.views.heartbeat', name='heartbeat'),
......
......@@ -2,9 +2,9 @@
django admin pages for courseware model
'''
from student.models import *
from student.models import UserProfile, UserTestGroup, CourseEnrollmentAllowed
from student.models import CourseEnrollment, Registration, PendingNameChange
from django.contrib import admin
from django.contrib.auth.models import User
admin.site.register(UserProfile)
......
......@@ -2,7 +2,7 @@
django admin pages for courseware model
'''
from track.models import *
from track.models import TrackingLog
from django.contrib import admin
admin.site.register(TrackingLog)
......@@ -2,7 +2,7 @@
django admin pages for courseware model
'''
from courseware.models import *
from courseware.models import StudentModule, OfflineComputedGrade, OfflineComputedGradeLog
from django.contrib import admin
from django.contrib.auth.models import User
......
......@@ -2,7 +2,7 @@ from django.conf import settings
from .mustache_helpers import mustache_helpers
from functools import partial
from .utils import *
from .utils import extend_content, merge_dict, render_mustache
import django_comment_client.settings as cc_settings
import pystache_custom as pystache
......
......@@ -3,7 +3,7 @@
# django management command: dump grades to csv files
# for use by batch processes
from instructor.offline_gradecalc import *
from instructor.offline_gradecalc import offline_grade_calculation
from courseware.courses import get_course_by_id
from xmodule.modulestore.django import modulestore
......
......@@ -2,7 +2,7 @@
django admin pages for courseware model
'''
from psychometrics.models import *
from psychometrics.models import PsychometricData
from django.contrib import admin
admin.site.register(PsychometricData)
......@@ -4,9 +4,9 @@
import json
from courseware.models import *
from track.models import *
from psychometrics.models import *
from courseware.models import StudentModule
from track.models import TrackingLog
from psychometrics.models import PsychometricData
from xmodule.modulestore import Location
from django.conf import settings
......
......@@ -14,7 +14,8 @@ from scipy.optimize import curve_fit
from django.conf import settings
from django.db.models import Sum, Max
from psychometrics.models import *
from psychometrics.models import PsychometricData
from courseware.models import StudentModule
from pytz import UTC
log = logging.getLogger("mitx.psychometrics")
......@@ -303,7 +304,7 @@ def generate_plots_for_problem(problem):
def make_psychometrics_data_update_handler(course_id, user, module_state_key):
"""
Construct and return a procedure which may be called to update
the PsychometricsData instance for the given StudentModule instance.
the PsychometricData instance for the given StudentModule instance.
"""
sm, status = StudentModule.objects.get_or_create(
course_id=course_id,
......
from .utils import *
from .utils import CommentClientError, perform_request
from .thread import Thread
from .thread import Thread, _url_for_flag_abuse_thread, _url_for_unflag_abuse_thread
import models
import settings
......
......@@ -5,7 +5,7 @@ from .thread import Thread
from .user import User
from .commentable import Commentable
from .utils import *
from .utils import perform_request
import settings
......
from .utils import *
import models
import settings
......
from .utils import *
from .utils import merge_dict, strip_blank, strip_none, extract, perform_request
from .utils import CommentClientError
import models
import settings
......
from .utils import *
from .utils import merge_dict, perform_request, CommentClientError
import models
import settings
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment