This will remove imports from __future__ that are no longer needed. https://docs.python.org/3.5/library/2to3.html#2to3fixer-future
17 lines
300 B
Python
17 lines
300 B
Python
"""
|
|
Django template context processors.
|
|
"""
|
|
|
|
|
|
|
|
from openedx.core.lib.mobile_utils import is_request_from_mobile_app
|
|
|
|
|
|
def is_from_mobile_app(request):
|
|
"""
|
|
Configuration context for django templates.
|
|
"""
|
|
return {
|
|
'is_from_mobile_app': is_request_from_mobile_app(request)
|
|
}
|