【主机管理项目】-(路由表)

项目的:

urlpatterns = [
    url(r'^admin/', admin.site.urls),
    # url(r'^$','django.shortcuts.redirect',
    #     '/hostApp/index/'),
    url(r'^hostApp/',include('hostApp.urls')),
]

 应用的:

urlpatterns = [
    url(r'^userinfo', views.userinfo),
    url(r'^usertype', views.usertype),
    url(r'^hostinfo', views.hostinfo),
    url(r'^testitem', views.test_item),
    url(r'^business', views.usertype),
    url(r'^many_to_many$', views.many_to_many),
    url(r'^many_to_many_edit', views.many_to_many_edit),
    url(r'^test_ajax$', views.test_ajax),
    url(r'^test_ajax1', views.test_ajax1),
    url(r'^edit_data-(\d+)', views.edit_data),
    url(r'^index', views.index),
]

  

posted @ 2018-05-05 23:56  梦中琴歌  阅读(166)  评论(0编辑  收藏  举报