Closed rgaiacs closed 8 years ago
More info: from the admin panel, the address of the log is http://conf.scipyla.org/scipyla2016/site_media/media/sponsor_files/GitHub_Logo_a073ntR.png but we get "Page not found" from it.
@codersquid Sorry to disturb you, but do you have any idea of what could be the origin of this problem? Thanks in advance.
@xmnlab If anyone solve this problem today, February 17th, I will hard code the logos as a workaround.
@knabben vc poderia nos dar uma força com essa issue?
website-scipyla2016/scipyla2016/settings.py
has
# Absolute path to the directory that holds media.
# Example: "/home/media/media.lawrence.com/"
MEDIA_ROOT = os.path.join(PACKAGE_ROOT, "site_media", "media")
If we look at website-scipyla2016/scipyla2016/site_media/media/sponsor_files/
we will have
Github_7iP29kZ.png
Github_7iP29kZ.png.250x90_q85.png
Github_fCzc55T.png
GitHub_Logo_a073ntR.png
GitHub_Logo_a073ntR.png.250x90_q85.png
GitHub_Logo.png
Github.png
Github.png.250x90_q85.png
So http://conf.scipyla.org/scipyla2016/site_media/media/sponsor_files/GitHub_Logo_a073ntR.png should return the correct image like http://conf.scipyla.org/scipyla2016/site_media/static/img/logo2-scipyla-path.svg.
The bug is because of
if settings.DEBUG:
urlpatterns += patterns(
'',
url(r'^site_media/media/(?P<path>.*)$',
'django.views.static.serve',
{'document_root': settings.MEDIA_ROOT}),
)
on website-scipyla2016/scipyla2016/_urls.py
.
On the production server we are getting
when we should get
@xmnlab @leliel12 @knabben Could you help debug this and provide a solution?
How to reproduce