Django 1.8 serving static files during deployment

84 views Asked by At

My project runs fine on the local sever but during deployment on Heroku, I get the following error

Collectstatic configuration error. To debug, run: $ heroku run python manage.py collectstatic --noinput

I understand this is due to STATIC_ROOT settings in settings.py, but I can't seem to point to the location of the static files properly. This is my folder structure.

C:/
 /Users
   /Mac
   /denv
    /musicpro
        /musicpro
        /featureapp
           /static
                /featureapp
                   /css
                   /img
                   /js  

settings.py

STATIC_URL = '/static/'
STATIC_ROOT = 'musicpro/featureapp/static/featureapp/'
STATICFILES_DIRS = (
   os.path.join(BASE_DIR, "static")
 )
0

There are 0 answers