diff --git a/juser/urls.py b/juser/urls.py index 01117d57a..326f2df7e 100644 --- a/juser/urls.py +++ b/juser/urls.py @@ -7,5 +7,7 @@ urlpatterns = patterns('juser.views', # url(r'^blog/', include('blog.urls')), (r'^user_add/$', 'user_add'), + (r'^user_list/$', 'user_list'), (r'^group_add/$', 'group_add'), + (r'^group_list/$', 'group_list'), ) diff --git a/juser/views.py b/juser/views.py index 97b7e5730..1368ff785 100644 --- a/juser/views.py +++ b/juser/views.py @@ -43,6 +43,14 @@ def group_add(request): 'error': error, 'msg': msg}) +def group_list(request): + return render_to_response('juser/group_list.html') + + +def user_list(request): + pass + + def user_add(request): return render_to_response('juser/user_add.html', {'header_title': u'添加用户 | Add User', 'path1': 'juser', 'path2': 'user_add'}) diff --git a/templates/juser/group_list.html b/templates/juser/group_list.html new file mode 100644 index 000000000..a52c54853 --- /dev/null +++ b/templates/juser/group_list.html @@ -0,0 +1,66 @@ +{% extends 'base.html' %} + +{% block content %} + {% include 'nav_cat_bar.html' %} +
+{% endblock %} \ No newline at end of file