Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
converse.js
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
converse.js
Commits
4e6aa813
Commit
4e6aa813
authored
Aug 12, 2014
by
Michal Čihař
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use os.path.join instead of using format string
Signed-off-by:
Michal Čihař
<
michal@cihar.com
>
parent
1ace8ff4
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
weblate/appsettings.py
weblate/appsettings.py
+1
-1
weblate/settings_example.py
weblate/settings_example.py
+4
-4
weblate/settings_test.py
weblate/settings_test.py
+1
-1
No files found.
weblate/appsettings.py
View file @
4e6aa813
...
...
@@ -58,7 +58,7 @@ MT_GOOGLE_KEY = get('MT_GOOGLE_KEY', None)
MT_TMSERVER
=
get
(
'MT_TMSERVER'
,
None
)
# Path where git repositories are stored, it needs to be writable
GIT_ROOT
=
get
(
'GIT_ROOT'
,
'%s/repos/'
%
WEB_ROOT
)
GIT_ROOT
=
get
(
'GIT_ROOT'
,
os
.
path
.
join
(
WEB_ROOT
,
'repos'
)
)
# Title of site to use
SITE_TITLE
=
get
(
'SITE_TITLE'
,
'Weblate'
)
...
...
weblate/settings_example.py
View file @
4e6aa813
...
...
@@ -129,7 +129,7 @@ URL_PREFIX = ''
# Absolute filesystem path to the directory that will hold user-uploaded files.
# Example: "/home/media/media.lawrence.com/media/"
MEDIA_ROOT
=
'%s/media/'
%
WEB_ROOT
MEDIA_ROOT
=
os
.
path
.
join
(
WEB_ROOT
,
'media'
)
# URL that handles the media served from MEDIA_ROOT. Make sure to use a
# trailing slash.
...
...
@@ -228,7 +228,7 @@ TEMPLATE_DIRS = (
# or "C:/www/django/templates".
# Always use forward slashes, even on Windows.
# Don't forget to use absolute paths, not relative paths.
'%s/html/'
%
WEB_ROOT
,
os
.
path
.
join
(
WEB_ROOT
,
'html'
)
,
)
INSTALLED_APPS
=
(
...
...
@@ -250,7 +250,7 @@ INSTALLED_APPS = (
'weblate'
,
)
LOCALE_PATHS
=
(
'%s/../locale'
%
WEB_ROOT
,
)
LOCALE_PATHS
=
(
os
.
path
.
join
(
WEB_ROOT
,
'..'
,
'locale'
)
,
)
TEMPLATE_CONTEXT_PROCESSORS
=
(
...
...
@@ -378,7 +378,7 @@ MT_GOOGLE_KEY = None
MT_TMSERVER
=
None
# Path where git repositories are stored, it needs to be writable
GIT_ROOT
=
'%s/repos/'
%
WEB_ROOT
GIT_ROOT
=
os
.
path
.
join
(
WEB_ROOT
,
'repos'
)
# Title of site to use
SITE_TITLE
=
'Weblate'
...
...
weblate/settings_test.py
View file @
4e6aa813
...
...
@@ -43,7 +43,7 @@ if 'TRAVIS_DATABASE' in os.environ:
ADMINS
=
((
'Weblate test'
,
'noreply@weblate.org'
),
)
# Different root for test repos
GIT_ROOT
=
'%s/test-repos/'
%
WEB_ROOT
GIT_ROOT
=
os
.
path
.
join
(
WEB_ROOT
,
'test-repos'
)
# Avoid migrating during testsuite
SOUTH_TESTS_MIGRATE
=
False
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment