scipy / SciPyCentral

SciPy Central
http://scipy-central.org
BSD 3-Clause "New" or "Revised" License
16 stars 12 forks source link

BUG: remove hardcode domain name in image URL #185

Closed ksurya closed 9 years ago

ksurya commented 9 years ago

Changes:

  1. Remove hardcoded domain-name of image URLs in HTML when converted from ReST
  2. Serve media files under development server

Description:

Previously, image URLs in HTML are in format: http://scipy-central.org/{{MEDIA_URL}}/{{IMAGE_URL}}/. Now, image URLs in HTML are in format: /{{MEDIA_URL}}/{{IMAGE_URL}}/ (domain name is not needed for modern browsers)

NOTE: {{MEDIA_URL}} if changed in settings.py needs maintenance work to recompile stored links in submissions' description!

ksurya commented 9 years ago

@pv Can you please look into why rest_comments test cases are failing in Travis CI while all are passing on my local machine (Windows)

ksurya commented 9 years ago

Issues effected with this PR

https://github.com/scipy/SciPyCentral/issues/177 https://github.com/scipy/SciPyCentral/issues/123