15 lines
333 B
Python
15 lines
333 B
Python
"""
|
|
Django template context processors.
|
|
"""
|
|
|
|
from openedx.core.lib.mobile_utils import is_request_from_mobile_app
|
|
|
|
|
|
def is_from_mobile_app(request): # pylint: disable=unused-argument
|
|
"""
|
|
Configuration context for django templates.
|
|
"""
|
|
return {
|
|
'is_from_mobile_app': is_request_from_mobile_app(request)
|
|
}
|