6 lines
140 B
Python
6 lines
140 B
Python
from django.core.urlresolvers import resolve
|
|
|
|
|
|
def resolve_to_name(path, urlconf=None):
|
|
return resolve(path, urlconf=urlconf).view_name
|