SyllabiShare / syllabi-share

A app to help students share syllabi to assist in the college course selection process
GNU General Public License v3.0
9 stars 3 forks source link

Use MEDIA_ROOT/URL for uploads #51

Open 50Wliu opened 4 years ago

50Wliu commented 4 years ago

Not STATIC_*.

This will ease local development so that we can have static files (CSS) served locally but media files (PDFs) served remotely.

https://docs.djangoproject.com/en/3.0/topics/files/

verndrade commented 4 years ago

there are other ways to make local easy. If the AWS keys are invalid html will render the static files you have locally, maybe try deleting the local API keys or adding a char or two

50Wliu commented 4 years ago

My current workaround is to comment out STATICFILES_STORAGE and add STATIC_URL='/static/' instead.