Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
ippidb-web
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
iPPIDB
ippidb-web
Commits
d3718ef1
Commit
d3718ef1
authored
6 years ago
by
Bryan BRANCOTTE
Browse files
Options
Downloads
Patches
Plain Diff
BUGFIX on sstatic when running in not DEBUG environment
parent
e980f7e6
No related branches found
No related tags found
No related merge requests found
Pipeline
#9354
passed
6 years ago
Stage: test
Changes
1
Pipelines
2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
ippisite/ippidb/templatetags/sstatic.py
+1
-1
1 addition, 1 deletion
ippisite/ippidb/templatetags/sstatic.py
with
1 addition
and
1 deletion
ippisite/ippidb/templatetags/sstatic.py
+
1
−
1
View file @
d3718ef1
...
@@ -15,7 +15,7 @@ def sstatic(path):
...
@@ -15,7 +15,7 @@ def sstatic(path):
'''
'''
Returns absolute URL to static file with versioning.
Returns absolute URL to static file with versioning.
'''
'''
full_path
=
os
.
path
.
join
(
settings
.
STATIC_
ROOT
,
path
[
1
:]
if
path
[
0
]
==
'
/
'
else
path
)
full_path
=
os
.
path
.
join
(
settings
.
STATIC_
URL
,
path
[
1
:]
if
path
[
0
]
==
'
/
'
else
path
)
if
not
settings
.
DEBUG
:
if
not
settings
.
DEBUG
:
return
full_path
return
full_path
try
:
try
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment