mirror of
https://github.com/haiwen/seahub.git
synced 2025-04-28 03:10:45 +00:00
Modified some settings
This commit is contained in:
parent
d8cd3248e4
commit
0fc569df98
@ -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
|
||||
RequestContext.
|
||||
"""
|
||||
from settings import SEAFILE_VERSION, SEAHUB_TITLE, SITE_NAME, SITE_BASE
|
||||
from settings import SEAFILE_VERSION, SITE_TITLE, SITE_NAME, SITE_BASE
|
||||
try:
|
||||
from settings import BUSINESS_MODE
|
||||
except ImportError:
|
||||
@ -28,7 +28,7 @@ def base(request):
|
||||
|
||||
return {
|
||||
'seafile_version': SEAFILE_VERSION,
|
||||
'seahub_title': SEAHUB_TITLE,
|
||||
'site_title': SITE_TITLE,
|
||||
'business_mode': BUSINESS_MODE,
|
||||
'cloud_mode': request.cloud_mode,
|
||||
'org': org,
|
||||
|
15
settings.py
15
settings.py
@ -192,10 +192,6 @@ CACHES = {
|
||||
MAX_UPLOAD_FILE_SIZE = 100 * 1024 * 1024 # 100 MB
|
||||
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,
|
||||
# and no email sending
|
||||
ACTIVATE_AFTER_REGISTRATION = True
|
||||
@ -213,9 +209,12 @@ CCNET_APPLET_ROOT = "http://localhost:13420"
|
||||
# Account initial password, for password resetting.
|
||||
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:
|
||||
import local_settings
|
||||
@ -239,7 +238,7 @@ else:
|
||||
|
||||
LOGIN_URL = SITE_ROOT + 'accounts/login'
|
||||
|
||||
USER_TOTAL_SPACE = 5 * pow(2,30)
|
||||
|
||||
SEAFILE_VERSION = '1.2.0'
|
||||
|
||||
USE_SUBDOMAIN = False
|
||||
|
||||
|
@ -4,7 +4,7 @@
|
||||
<!DOCTYPE html>
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<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 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" />
|
||||
|
Loading…
Reference in New Issue
Block a user