chrismcginlay / eduduck

An abandoned online course hosting platform/marketplace
GNU General Public License v3.0
2 stars 0 forks source link

Media causing server error 500 in production/staging #128

Open chrismcginlay opened 9 years ago

chrismcginlay commented 9 years ago

Deploy tools fabfile does not currently populate MEDIA_ROOT with the contents of source/media. When a user tries to visit a course with attachments, this causes a 500 error. The solution is to copy the sample media from source/media to MEDIA_ROOT folder.

The error is an OSError caused in courses/views.py It would be better to replace the attachment with a message saying the attached file is not available.