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
74a41881
Commit
74a41881
authored
Mar 21, 2012
by
Michal Čihař
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cache this page
parent
0e1df6fb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
trans/views.py
trans/views.py
+3
-0
No files found.
trans/views.py
View file @
74a41881
from
django.shortcuts
import
render_to_response
,
get_object_or_404
from
django.shortcuts
import
render_to_response
,
get_object_or_404
from
django.views.decorators.cache
import
cache_page
from
django.conf
import
settings
from
django.conf
import
settings
from
django.core.servers.basehttp
import
FileWrapper
from
django.core.servers.basehttp
import
FileWrapper
from
django.utils.translation
import
ugettext_lazy
,
ugettext
as
_
from
django.utils.translation
import
ugettext_lazy
,
ugettext
as
_
...
@@ -467,6 +468,8 @@ def not_found(request):
...
@@ -467,6 +468,8 @@ def not_found(request):
'projects'
:
Project
.
objects
.
all
(),
'projects'
:
Project
.
objects
.
all
(),
})))
})))
# Cache this page for one day, it should not really change much
@
cache_page
(
24
*
3600
)
def
js_config
(
request
):
def
js_config
(
request
):
if
settings
.
MT_APERTIUM_KEY
is
not
None
and
settings
.
MT_APERTIUM_KEY
!=
''
:
if
settings
.
MT_APERTIUM_KEY
is
not
None
and
settings
.
MT_APERTIUM_KEY
!=
''
:
try
:
try
:
...
...
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