INCR-408 python3 compatibility

This commit is contained in:
Ayub khan
2019-07-11 15:19:08 +05:00
parent 3e9f503de5
commit f4fc14ca92
6 changed files with 14 additions and 0 deletions

View File

@@ -8,6 +8,8 @@ with:
from microsite_configuration import settings
"""
from __future__ import absolute_import
from django.conf import settings as base_settings
from microsite_configuration import microsite

View File

@@ -1,6 +1,8 @@
"""
Django admin page for microsite models
"""
from __future__ import absolute_import
from django import forms
from django.contrib import admin

View File

@@ -1,6 +1,10 @@
from __future__ import absolute_import
import logging
from django.apps import AppConfig
from .microsite import enable_microsites
log = logging.getLogger(__name__)

View File

@@ -6,6 +6,8 @@ A microsite enables the following features:
2) Present a landing page with a listing of courses that are specific to the 'brand'
3) Ability to swap out some branding elements in the website
"""
from __future__ import absolute_import
import inspect
from importlib import import_module

View File

@@ -7,6 +7,8 @@ A microsite enables the following features:
3) Ability to swap out some branding elements in the website
"""
from __future__ import absolute_import
from microsite_configuration import microsite

View File

@@ -5,6 +5,8 @@ The object is stored as a json representation of the python dict
that would have been used in the settings.
"""
from __future__ import absolute_import
import collections
from django.contrib.sites.models import Site