1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-08-12 04:12:16 +00:00

Modified some settings

This commit is contained in:
zhengxie 2012-11-07 20:39:59 +08:00
parent d8cd3248e4
commit 0fc569df98
3 changed files with 10 additions and 11 deletions

View File

@ -6,7 +6,7 @@ and returns a dictionary to add to the context.
These are referenced from the setting TEMPLATE_CONTEXT_PROCESSORS and used by These are referenced from the setting TEMPLATE_CONTEXT_PROCESSORS and used by
RequestContext. RequestContext.
""" """
from settings import SEAFILE_VERSION, SEAHUB_TITLE, SITE_NAME, SITE_BASE from settings import SEAFILE_VERSION, SITE_TITLE, SITE_NAME, SITE_BASE
try: try:
from settings import BUSINESS_MODE from settings import BUSINESS_MODE
except ImportError: except ImportError:
@ -28,7 +28,7 @@ def base(request):
return { return {
'seafile_version': SEAFILE_VERSION, 'seafile_version': SEAFILE_VERSION,
'seahub_title': SEAHUB_TITLE, 'site_title': SITE_TITLE,
'business_mode': BUSINESS_MODE, 'business_mode': BUSINESS_MODE,
'cloud_mode': request.cloud_mode, 'cloud_mode': request.cloud_mode,
'org': org, 'org': org,

View File

@ -192,10 +192,6 @@ CACHES = {
MAX_UPLOAD_FILE_SIZE = 100 * 1024 * 1024 # 100 MB MAX_UPLOAD_FILE_SIZE = 100 * 1024 * 1024 # 100 MB
MAX_UPLOAD_FILE_NAME_LEN = 256 MAX_UPLOAD_FILE_NAME_LEN = 256
# Base url and name used in email sending
SITE_BASE = 'http://seafile.com'
SITE_NAME = 'Seafile'
# Set to True when user will be activaed after registration, # Set to True when user will be activaed after registration,
# and no email sending # and no email sending
ACTIVATE_AFTER_REGISTRATION = True ACTIVATE_AFTER_REGISTRATION = True
@ -213,9 +209,12 @@ CCNET_APPLET_ROOT = "http://localhost:13420"
# Account initial password, for password resetting. # Account initial password, for password resetting.
INIT_PASSWD = '123456' INIT_PASSWD = '123456'
SEAHUB_TITLE = 'Private Seafile' # browser tab title
SITE_TITLE = 'Private Seafile'
USE_SUBDOMAIN = False # Base url and name used in email sending
SITE_BASE = 'http://seafile.com'
SITE_NAME = 'Seafile'
try: try:
import local_settings import local_settings
@ -239,7 +238,7 @@ else:
LOGIN_URL = SITE_ROOT + 'accounts/login' LOGIN_URL = SITE_ROOT + 'accounts/login'
USER_TOTAL_SPACE = 5 * pow(2,30)
SEAFILE_VERSION = '1.2.0' SEAFILE_VERSION = '1.2.0'
USE_SUBDOMAIN = False

View File

@ -4,7 +4,7 @@
<!DOCTYPE html> <!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"> <html xmlns="http://www.w3.org/1999/xhtml">
<head> <head>
<title>{% if org %}{{ org.org_name }} - {% endif %}{{ seahub_title }}</title> <title>{% if org %}{{ org.org_name }} - {% endif %}{{ site_title }}</title>
<meta http-equiv="Content-type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<meta name="keywords" content="{% trans "File Collaboration Team Organization" %}" /> <meta name="keywords" content="{% trans "File Collaboration Team Organization" %}" />
<link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/ui-lightness/jquery-ui-1.8.16.custom.css" /> <link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/ui-lightness/jquery-ui-1.8.16.custom.css" />