MCPcopy
hub / github.com/liangliangyy/DjangoBlog / get_current_site

Function get_current_site

djangoblog/utils.py:98–100  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

96
97@cache_decorator()
98def get_current_site():
99 site = Site.objects.get_current()
100 return site
101
102
103class CommonMarkdown:

Callers 15

test_validate_articleMethod · 0.90
get_full_urlMethod · 0.90
get_view_on_site_urlMethod · 0.90
load_breadcrumbFunction · 0.90
ping_baidu.pyFile · 0.90
get_redirecturlFunction · 0.90
emailconfirmFunction · 0.90
form_validMethod · 0.90
get_full_urlMethod · 0.90
form_validMethod · 0.90
model_post_save_callbackFunction · 0.90

Calls

no outgoing calls

Tested by 2

test_validate_articleMethod · 0.72
test_validate_accountMethod · 0.68