Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Jean Michel Rouly
bookshare
Commits
c82dc071
Commit
c82dc071
authored
Apr 17, 2015
by
Daniel W Bond
Browse files
add url link to host media files
parent
d259c2a7
Changes
1
Hide whitespace changes
Inline
Side-by-side
bookshare/settings/urls.py
View file @
c82dc071
...
...
@@ -41,5 +41,5 @@ urlpatterns = patterns('',
url
(
r
'^admin/doc/'
,
include
(
'django.contrib.admindocs.urls'
)),
url
(
r
'^admin/'
,
include
(
admin
.
site
.
urls
)),
# location of user-uploaded media files from settings.py
)
+
static
(
settings
.
MEDIA_URL
,
document_root
=
settings
.
MEDIA_ROOT
)
# location of user-uploaded media files from settings.py
(for local)
)
#
+ static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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