MCPcopy
hub / github.com/django/django / get_mod_func

Function get_mod_func

django/urls/utils.py:59–66  ·  view source on GitHub ↗
(callback)

Source from the content-addressed store, hash-verified

57
58
59def get_mod_func(callback):
60 # Convert 'django.views.news.stories.story_detail' to
61 # ['django.views.news.stories', 'story_detail']
62 try:
63 dot = callback.rindex(".")
64 except ValueError:
65 return callback, ""
66 return callback[:dot], callback[dot + 1 :]

Callers 2

_get_view_funcMethod · 0.90
get_callableFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected