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 urlpatterns = patterns('', # nopep8
url(r'^$', 'heartbeat.views.heartbeat', name='heartbeat'), url(r'^$', 'heartbeat.views.heartbeat', name='heartbeat'),
......
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
django admin pages for courseware model 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 import admin
from django.contrib.auth.models import User
admin.site.register(UserProfile) admin.site.register(UserProfile)
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
django admin pages for courseware model django admin pages for courseware model
''' '''
from track.models import * from track.models import TrackingLog
from django.contrib import admin from django.contrib import admin
admin.site.register(TrackingLog) admin.site.register(TrackingLog)
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
django admin pages for courseware model 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 import admin
from django.contrib.auth.models import User from django.contrib.auth.models import User
......
...@@ -2,7 +2,7 @@ from django.conf import settings ...@@ -2,7 +2,7 @@ from django.conf import settings
from .mustache_helpers import mustache_helpers from .mustache_helpers import mustache_helpers
from functools import partial 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 django_comment_client.settings as cc_settings
import pystache_custom as pystache import pystache_custom as pystache
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
# django management command: dump grades to csv files # django management command: dump grades to csv files
# for use by batch processes # 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 courseware.courses import get_course_by_id
from xmodule.modulestore.django import modulestore from xmodule.modulestore.django import modulestore
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
django admin pages for courseware model django admin pages for courseware model
''' '''
from psychometrics.models import * from psychometrics.models import PsychometricData
from django.contrib import admin from django.contrib import admin
admin.site.register(PsychometricData) admin.site.register(PsychometricData)
...@@ -4,9 +4,9 @@ ...@@ -4,9 +4,9 @@
import json import json
from courseware.models import * from courseware.models import StudentModule
from track.models import * from track.models import TrackingLog
from psychometrics.models import * from psychometrics.models import PsychometricData
from xmodule.modulestore import Location from xmodule.modulestore import Location
from django.conf import settings from django.conf import settings
......
...@@ -14,7 +14,8 @@ from scipy.optimize import curve_fit ...@@ -14,7 +14,8 @@ from scipy.optimize import curve_fit
from django.conf import settings from django.conf import settings
from django.db.models import Sum, Max 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 from pytz import UTC
log = logging.getLogger("mitx.psychometrics") log = logging.getLogger("mitx.psychometrics")
...@@ -303,7 +304,7 @@ def generate_plots_for_problem(problem): ...@@ -303,7 +304,7 @@ def generate_plots_for_problem(problem):
def make_psychometrics_data_update_handler(course_id, user, module_state_key): def make_psychometrics_data_update_handler(course_id, user, module_state_key):
""" """
Construct and return a procedure which may be called to update 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( sm, status = StudentModule.objects.get_or_create(
course_id=course_id, 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 models
import settings import settings
......
...@@ -5,7 +5,7 @@ from .thread import Thread ...@@ -5,7 +5,7 @@ from .thread import Thread
from .user import User from .user import User
from .commentable import Commentable from .commentable import Commentable
from .utils import * from .utils import perform_request
import settings import settings
......
from .utils import *
import models import models
import settings import settings
......
from .utils import * from .utils import merge_dict, strip_blank, strip_none, extract, perform_request
from .utils import CommentClientError
import models import models
import settings import settings
......
from .utils import * from .utils import merge_dict, perform_request, CommentClientError
import models import models
import settings 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