1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-01 15:09:14 +00:00

Impove registration process and add user admin page

This commit is contained in:
plt
2012-02-21 17:11:58 +08:00
parent 67e0ce2fb6
commit 37db478448
9 changed files with 217 additions and 19 deletions

View File

@@ -3,7 +3,8 @@ from django.conf import settings
from django.views.generic.simple import direct_to_template
from seahub.views import root, peers, groups, myhome, \
repo, group, modify_token, remove_repo, seafadmin
repo, group, modify_token, remove_repo, seafadmin, useradmin, \
role_add, role_remove
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
@@ -30,6 +31,9 @@ urlpatterns = patterns('',
(r'^repo/remove/(?P<repo_id>[^/]+)/$', remove_repo),
(r'^seafadmin/$', seafadmin),
(r'^useradmin/$', useradmin),
(r'^useradmin/(?P<user_id>[^/]+)/role/add/$', role_add),
(r'^useradmin/(?P<user_id>[^/]+)/role/remove/$', role_remove),
(r'^avatar/', include('avatar.urls')),
(r'^profile/', include('seahub.profile.urls')),