Files
edx-platform/lms/djangoapps/mobile_api/context_processor.py
Feanil Patel 9cf2f9f298 Run 2to3 -f future . -w
This will remove imports from __future__ that are no longer needed.

https://docs.python.org/3.5/library/2to3.html#2to3fixer-future
2019-12-30 10:35:30 -05:00

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)
}