diff --git a/openedx/core/djangoapps/dark_lang/admin.py b/openedx/core/djangoapps/dark_lang/admin.py index 3ae70e24ec..6aa6a125ab 100644 --- a/openedx/core/djangoapps/dark_lang/admin.py +++ b/openedx/core/djangoapps/dark_lang/admin.py @@ -2,6 +2,8 @@ Admin site bindings for dark_lang """ +from __future__ import absolute_import + from config_models.admin import ConfigurationModelAdmin from django.contrib import admin diff --git a/openedx/core/djangoapps/dark_lang/middleware.py b/openedx/core/djangoapps/dark_lang/middleware.py index a9175a2639..2fd5022bfa 100644 --- a/openedx/core/djangoapps/dark_lang/middleware.py +++ b/openedx/core/djangoapps/dark_lang/middleware.py @@ -7,6 +7,8 @@ Language setting page. This middleware must be placed before the LocaleMiddleware, but after the SessionMiddleware. """ +from __future__ import absolute_import + from django.conf import settings from django.utils.translation import LANGUAGE_SESSION_KEY from django.utils.translation.trans_real import parse_accept_lang_header diff --git a/openedx/core/djangoapps/dark_lang/migrations/0001_initial.py b/openedx/core/djangoapps/dark_lang/migrations/0001_initial.py index 1b3ac52e89..9df69d3186 100644 --- a/openedx/core/djangoapps/dark_lang/migrations/0001_initial.py +++ b/openedx/core/djangoapps/dark_lang/migrations/0001_initial.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -from __future__ import unicode_literals +from __future__ import absolute_import, unicode_literals from django.db import migrations, models import django.db.models.deletion diff --git a/openedx/core/djangoapps/dark_lang/migrations/0002_data__enable_on_install.py b/openedx/core/djangoapps/dark_lang/migrations/0002_data__enable_on_install.py index 97fdf460d0..1070e5db10 100644 --- a/openedx/core/djangoapps/dark_lang/migrations/0002_data__enable_on_install.py +++ b/openedx/core/djangoapps/dark_lang/migrations/0002_data__enable_on_install.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -from __future__ import unicode_literals +from __future__ import absolute_import, unicode_literals # Converted from the original South migration 0002_enable_on_install.py # diff --git a/openedx/core/djangoapps/dark_lang/migrations/0003_auto_20180425_0359.py b/openedx/core/djangoapps/dark_lang/migrations/0003_auto_20180425_0359.py index 1104ef7687..5a26d6513b 100644 --- a/openedx/core/djangoapps/dark_lang/migrations/0003_auto_20180425_0359.py +++ b/openedx/core/djangoapps/dark_lang/migrations/0003_auto_20180425_0359.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # Generated by Django 1.11.12 on 2018-04-25 07:59 -from __future__ import unicode_literals +from __future__ import absolute_import, unicode_literals from django.db import migrations, models diff --git a/openedx/core/djangoapps/dark_lang/models.py b/openedx/core/djangoapps/dark_lang/models.py index 0492ae8069..5a0a5e8606 100644 --- a/openedx/core/djangoapps/dark_lang/models.py +++ b/openedx/core/djangoapps/dark_lang/models.py @@ -1,6 +1,8 @@ """ Models for the dark-launching languages """ +from __future__ import absolute_import + from config_models.models import ConfigurationModel from django.db import models diff --git a/openedx/core/djangoapps/dark_lang/tests.py b/openedx/core/djangoapps/dark_lang/tests.py index 9b5d562ac8..19a0fdd49f 100644 --- a/openedx/core/djangoapps/dark_lang/tests.py +++ b/openedx/core/djangoapps/dark_lang/tests.py @@ -1,6 +1,8 @@ """ Tests of DarkLangMiddleware """ +from __future__ import absolute_import + import unittest import ddt diff --git a/openedx/core/djangoapps/dark_lang/urls.py b/openedx/core/djangoapps/dark_lang/urls.py index db3a7457c8..76bcb0ae8e 100644 --- a/openedx/core/djangoapps/dark_lang/urls.py +++ b/openedx/core/djangoapps/dark_lang/urls.py @@ -2,6 +2,8 @@ Contains all the URLs for the Dark Language Support App """ +from __future__ import absolute_import + from django.conf.urls import url from openedx.core.djangoapps.dark_lang import views diff --git a/openedx/core/djangoapps/dark_lang/views.py b/openedx/core/djangoapps/dark_lang/views.py index ffc968e517..0e16730c09 100644 --- a/openedx/core/djangoapps/dark_lang/views.py +++ b/openedx/core/djangoapps/dark_lang/views.py @@ -1,6 +1,8 @@ """ Views file for the Darklang Django App """ +from __future__ import absolute_import + from django.contrib.auth.decorators import login_required from django.http import Http404 from django.shortcuts import redirect