Skip to content
GitLab
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
b0f4f616
Commit
b0f4f616
authored
Oct 28, 2020
by
Bryan BRANCOTTE
Browse files
ability to override scheme
parent
2d53b3cd
Pipeline
#40490
canceled with stage
Changes
2
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
basetheme_bootstrap/templatetags/sstatic.py
View file @
b0f4f616
...
...
@@ -22,7 +22,7 @@ def sstatic(context, path):
def
get_absolut_url
(
request
,
relative_url
):
return
"%s://%s%s"
%
(
request
.
scheme
,
request
.
get_host
(),
relative_url
)
return
"%s://%s%s"
%
(
getattr
(
settings
,
"DEFAULT_SCHEME"
,
request
.
scheme
)
,
request
.
get_host
(),
relative_url
)
def
compute_url_for_path
(
path
):
...
...
setup.py
View file @
b0f4f616
...
...
@@ -7,7 +7,7 @@ readme = open('README.rst').read()
setup
(
name
=
'django-basetheme-bootstrap'
,
version
=
'0.2.4
3
'
,
version
=
'0.2.4
4
'
,
description
=
'Django Basetheme Bootstrap'
,
long_description
=
readme
,
author
=
'Bryan Brancotte'
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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