Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Bryan BRANCOTTE
django-basetheme-bootstrap
Commits
b8aed722
Commit
b8aed722
authored
Oct 23, 2020
by
Bryan BRANCOTTE
Browse files
python 3.5 compatibility
parent
8ea6a5b3
Pipeline
#40116
passed with stage
in 1 minute and 27 seconds
Changes
1
Pipelines
2
Show whitespace changes
Inline
Side-by-side
basetheme_bootstrap/templatetags/sstatic.py
View file @
b8aed722
...
@@ -22,7 +22,7 @@ def sstatic(context, path):
...
@@ -22,7 +22,7 @@ def sstatic(context, path):
def
get_absolut_url
(
request
,
relative_url
):
def
get_absolut_url
(
request
,
relative_url
):
return
f
"
{
request
.
scheme
}
://
{
request
.
get_host
()
}{
relative_url
}
"
return
"%s://%s%s"
%
(
request
.
scheme
,
request
.
get_host
()
,
relative_url
)
def
compute_url_for_path
(
path
):
def
compute_url_for_path
(
path
):
...
...
Write
Preview
Supports
Markdown
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