mirror of
https://github.com/haiwen/seahub.git
synced 2025-08-31 14:42:10 +00:00
Clean code
This commit is contained in:
14
urls.py
14
urls.py
@@ -2,8 +2,8 @@ from django.conf.urls.defaults import *
|
||||
from django.conf import settings
|
||||
from django.views.generic.simple import direct_to_template
|
||||
|
||||
from seahub.views import root, home, peers, groups, myhome, myrepos, \
|
||||
repo, group, group_add_repo, modify_token, remove_repo, seafadmin
|
||||
from seahub.views import root, peers, groups, myhome, \
|
||||
repo, group, modify_token, remove_repo, seafadmin
|
||||
|
||||
# Uncomment the next two lines to enable the admin:
|
||||
from django.contrib import admin
|
||||
@@ -23,19 +23,9 @@ urlpatterns = patterns('',
|
||||
(r'^accounts/', include('base.registration_urls')),
|
||||
|
||||
(r'^$', root),
|
||||
(r'^home/$', home),
|
||||
url(r'^home/my/$', myhome, name='myhome'),
|
||||
(r'^help/$', direct_to_template, { 'template': 'help.html' } ),
|
||||
(r'^help/sync/$', direct_to_template, { 'template': 'help_sync.html' } ),
|
||||
(r'^help/manual/$', direct_to_template, { 'template': 'help_manual.html' } ),
|
||||
(r'^help/history/$', direct_to_template, { 'template': 'help_history.html' } ),
|
||||
(r'^download/$', direct_to_template, { 'template': 'download.html' } ),
|
||||
(r'^peers/$', peers),
|
||||
(r'^groups/$', groups),
|
||||
url(r'^group/(?P<group_id>[^/]+)/$', group, name='view_group'),
|
||||
(r'^group/(?P<group_id>[^/]+)/addrepo/$', group_add_repo),
|
||||
(r'^repo/(?P<repo_id>[^/]+)/$', repo),
|
||||
(r'^repos/my/$', myrepos),
|
||||
(r'^repo/token/modify/(?P<repo_id>[^/]+)/$', modify_token),
|
||||
(r'^repo/remove/(?P<repo_id>[^/]+)/$', remove_repo),
|
||||
|
||||
|
Reference in New Issue
Block a user