/
githubmirror
/
edx-platform
Обзор
Документация
Войти
/
githubmirror
/
edx-platform
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
release-ulmo
xmodule/util/xmodule_django.py
17 строк
496 B
Kyle McCormick
fix: make built-in XBlock Sass theme-aware again
06 июл 2023, 18:58
06 июл 2023, 18:58
127c5c1
Код
Авторство
О чём код?
""" Exposes Django utilities for consumption in the xmodule library """ # NOTE: we are importing this method so that any module that imports us has access to get_current_request from crum import get_current_request def get_current_request_hostname(): """ This method will return the hostname that was used in the current Django request """ hostname = None request = get_current_request() if request: hostname = request.META.get('HTTP_HOST') return hostname