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
cf675ce5
Commit
cf675ce5
authored
Feb 27, 2012
by
Michal Čihař
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Definitions for dirs
parent
fa70985b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
3 deletions
+15
-3
settings.py
settings.py
+15
-2
trans/views.py
trans/views.py
+0
-1
No files found.
settings.py
View file @
cf675ce5
...
...
@@ -20,6 +20,18 @@ DATABASES = {
}
}
HOSTNAME
=
gethostname
()
if
HOSTNAME
==
'rincewind'
:
WEB_ROOT
=
'/home/mcihar/private/weblate/'
elif
HOSTNAME
==
'raptor'
:
WEB_ROOT
=
'/home/nijel/work/gammu/weblate/'
elif
HOSTNAME
==
'nutt'
:
WEB_ROOT
=
'/home/nijel/gammu/weblate/'
elif
HOSTNAME
==
'web'
:
WEB_ROOT
=
'/var/lib/django/weblate/'
else
:
WEB_ROOT
=
'/home/nijel/work/gammu/weblate/'
# Local time zone for this installation. Choices can be found here:
# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
# although not all choices may be available on all operating systems.
...
...
@@ -45,12 +57,12 @@ USE_L10N = True
# Absolute filesystem path to the directory that will hold user-uploaded files.
# Example: "/home/media/media.lawrence.com/media/"
MEDIA_ROOT
=
'
'
MEDIA_ROOT
=
'
%s/media/'
%
WEB_ROOT
# URL that handles the media served from MEDIA_ROOT. Make sure to use a
# trailing slash.
# Examples: "http://media.lawrence.com/media/", "http://example.com/media/"
MEDIA_URL
=
''
MEDIA_URL
=
'
/media/
'
# Absolute path to the directory static files should be collected to.
# Don't put anything in this directory yourself; store your static files
...
...
@@ -106,6 +118,7 @@ TEMPLATE_DIRS = (
# Put strings here, like "/home/html/django_templates" 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
,
)
INSTALLED_APPS
=
(
...
...
trans/views.py
View file @
cf675ce5
...
...
@@ -17,7 +17,6 @@ def show_subproject(request, project, subproject):
'object'
:
obj
,
})
def
show_translation
(
request
,
project
,
subproject
,
lang
):
obj
=
get_object_or_404
(
Language
,
language__code
=
lang
,
subproject__slug
=
subproject
,
subproject__project__slug
=
project
)
...
...
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