Skip to content
This repository was archived by the owner on Oct 28, 2019. It is now read-only.

Commit a7baaff

Browse files
committed
When debugging use local static
1 parent a73c113 commit a7baaff

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pasteapp/settings.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,10 @@
6464

6565
# URL prefix for static files.
6666
# Example: "http://media.lawrence.com/static/"
67-
STATIC_URL = 'http://dl.dropbox.com/u/2325654/paste/'
67+
if DEBUG:
68+
STATIC_URL = '/static/'
69+
else:
70+
STATIC_URL = 'http://dl.dropbox.com/u/2325654/paste/'
6871

6972
# URL prefix for admin static files -- CSS, JavaScript and images.
7073
# Make sure to use a trailing slash.

0 commit comments

Comments
 (0)