yzang / CapstoneDashboard

Prototype
3 stars 3 forks source link

Static files not being served from correct directory #3

Open timwis opened 7 years ago

timwis commented 7 years ago

It appears there are 2 django directories: capstone and CapstoneDashboard. The application is run from CapstoneDashboard but the static files are in capstone/static/. As a result, the application cannot load the css or javascript files.

mjumbewu commented 7 years ago

Looks like the directory structure is fine for development, but an app like dj-static will be needed to serve the assets from the STATIC_ROOT on Heroku (or any other environment where DEBUG is False).

Another option is whitenoise. See https://devcenter.heroku.com/articles/django-assets#whitenoise for a tl;dr.

timwis commented 7 years ago

Hey @yzang @jchu2 any advice?