diff --git a/openedx/core/djangoapps/theming/finders.py b/openedx/core/djangoapps/theming/finders.py index 3247191265..b7d7db43a5 100644 --- a/openedx/core/djangoapps/theming/finders.py +++ b/openedx/core/djangoapps/theming/finders.py @@ -17,6 +17,8 @@ interface, as well. .. _Django-Pipeline: https://django-pipeline.readthedocs.org/ .. _Django-Require: https://github.com/etianen/django-require """ +from __future__ import absolute_import + import os from collections import OrderedDict diff --git a/openedx/core/djangoapps/theming/helpers.py b/openedx/core/djangoapps/theming/helpers.py index f65ceb4566..46a4df9573 100644 --- a/openedx/core/djangoapps/theming/helpers.py +++ b/openedx/core/djangoapps/theming/helpers.py @@ -4,6 +4,8 @@ Helpers for accessing comprehensive theming related variables. This file is imported at startup. Imports of models or things which import models will break startup on Django 1.9+. If you need models here, please import them inside the function which uses them. """ +from __future__ import absolute_import + import os import re from logging import getLogger diff --git a/openedx/core/djangoapps/theming/views.py b/openedx/core/djangoapps/theming/views.py index 19cbb6393f..80755e71e7 100644 --- a/openedx/core/djangoapps/theming/views.py +++ b/openedx/core/djangoapps/theming/views.py @@ -2,6 +2,8 @@ Views file for theming administration. """ +from __future__ import absolute_import + from django.conf import settings from django.contrib.auth.decorators import login_required from django.http import Http404 @@ -9,15 +11,16 @@ from django.shortcuts import redirect from django.template.loader import render_to_string from django.utils.decorators import method_decorator from django.utils.translation import ugettext as _ +from web_fragments.fragment import Fragment + from openedx.core.djangoapps.plugin_api.views import EdxFragmentView from openedx.core.djangoapps.user_api.preferences.api import ( delete_user_preference, get_user_preference, - set_user_preference, + set_user_preference ) from openedx.core.djangoapps.util.user_messages import PageLevelMessages from student.roles import GlobalStaff -from web_fragments.fragment import Fragment from .helpers import theme_exists from .models import SiteTheme