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
e0f81eae
Commit
e0f81eae
authored
Feb 13, 2015
by
Michal Čihař
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Lazy loading of site models
Signed-off-by:
Michal Čihař
<
michal@cihar.com
>
parent
e23fe572
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
weblate/trans/util.py
weblate/trans/util.py
+1
-1
No files found.
weblate/trans/util.py
View file @
e0f81eae
...
...
@@ -19,7 +19,6 @@
#
from
django.core.exceptions
import
ImproperlyConfigured
from
django.contrib.sites.models
import
Site
from
django.core.cache
import
cache
from
django.http
import
HttpResponseRedirect
from
django.shortcuts
import
resolve_url
...
...
@@ -69,6 +68,7 @@ def get_site_url(url=''):
Returns root url of current site with domain.
'''
from
weblate.appsettings
import
ENABLE_HTTPS
from
django.contrib.sites.models
import
Site
site
=
Site
.
objects
.
get_current
()
return
'{0}://{1}{2}'
.
format
(
'https'
if
ENABLE_HTTPS
else
'http'
,
...
...
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