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

Add org account feature

This commit is contained in:
xiez
2012-06-20 19:39:21 +08:00
parent 5b96dc2ab2
commit 9c4a54931f
36 changed files with 1039 additions and 85 deletions

View File

@@ -68,6 +68,7 @@ MIDDLEWARE_CLASSES = (
'django.contrib.messages.middleware.MessageMiddleware',
'auth.middleware.AuthenticationMiddleware',
'seahub.base.middleware.InfobarMiddleware',
'seahub.subdomain.middleware.SubdomainMiddleware',
# 'seahub.base.middleware.UseridMiddleware',
)
@@ -110,6 +111,7 @@ INSTALLED_APPS = (
'seahub.contacts',
'seahub.group',
'seahub.share',
'seahub.subdomain',
)
AUTHENTICATION_BACKENDS = (
@@ -160,6 +162,13 @@ FILEEXT_ICON_MAP = {
'default' : 'file-icon-24.png',
}
SITE_SUBDOMAIN = 'cloud'
SITE_BASE_NAME = 'seafile.com.cn' if not DEBUG else 'localhost.localdomain'
SESSION_COOKIE_DOMAIN = '.' + SITE_BASE_NAME
# account type is `personal` or `business`
ACCOUNT_TYPE = 'personal'
try:
import local_settings
except ImportError: