easyui/views.py
def get_url(request):
    """
    通过menu_id，获取对应的URL
    eg. /easyui/MenuListView/
    """

    menu_id = request.GET.get('menu_id')
    m_object = Menu.objects.get(pk=menu_id)
    namespace = m_object.namespace
    viewname = m_object.viewname
    url_string = '%s:%s' %(namespace, viewname)
    url = reverse(url_string)

    return HttpResponse(url)
def get_url(request):
    """
    通过menu_id，获取对应的URL
    eg. /easyui/MenuListView/
    """

    menu_id = request.GET.get('menu_id')
    m_object = Menu.objects.get(pk=menu_id)
    namespace = m_object.namespace
    viewname = m_object.viewname
    url_string = '%s:%s' %(namespace, viewname)
    url = reverse(url_string)

    return HttpResponse(url)
通过menu_id，获取对应的URL
    eg. /easyui/MenuListView/