Skip to content
This repository was archived by the owner on Feb 26, 2021. It is now read-only.

Commit 2fc5f49

Browse files
committed
Fixing slash issue #21
1 parent 05c503c commit 2fc5f49

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python_vuejs/django.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@ def djbuild(project):
4545
f.seek(0)
4646
lines.insert(0, "{% load staticfiles %}\n")
4747
for line in lines:
48-
f.write(line.replace('href=/', "href=\"{% static '/")
48+
f.write(line.replace('href=/', "href=\"{% static '")
4949
.replace('.css', ".css' %}\"")
50-
.replace('src=/', "src=\"{% static '/")
50+
.replace('src=/', "src=\"{% static '")
5151
.replace('.js', ".js' %}\""))
5252

5353

0 commit comments

Comments
 (0)