fnp
/
wolnelektury.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
8c0d2b2
)
Made MEDIA_URL relative to application URL.
author
Marek Stępniowski
<marek@stepniowski.com>
Sat, 6 Sep 2008 13:48:57 +0000
(15:48 +0200)
committer
Marek Stępniowski
<marek@stepniowski.com>
Sat, 6 Sep 2008 13:48:57 +0000
(15:48 +0200)
settings.py
patch
|
blob
|
history
diff --git
a/settings.py
b/settings.py
index
5f0be96
..
04b5fd5
100644
(file)
--- a/
settings.py
+++ b/
settings.py
@@
-44,7
+44,7
@@
MEDIA_ROOT = PROJECT_DIR + '/media/'
# URL that handles the media served from MEDIA_ROOT. Make sure to use a
# trailing slash if there is a path component (optional in other cases).
# Examples: "http://media.lawrence.com", "http://example.com/media/"
# URL that handles the media served from MEDIA_ROOT. Make sure to use a
# trailing slash if there is a path component (optional in other cases).
# Examples: "http://media.lawrence.com", "http://example.com/media/"
-MEDIA_URL = '
http://localhost:8000
/media/'
+MEDIA_URL = '/media/'
# URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
# trailing slash.
# URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
# trailing slash.