錯誤:You may need to update application code to resolve this error.
remote: Or, you can disable collectstatic for this application:
remote: $ heroku config:set DISABLE_COLLECTSTATIC=1
我解決的辦法是在settings.py文件中加了一條:
STATIC_ROOT = os.path.join(BASE_DIR, 'static')特別注意這一條不要加在Heroku設置的那個if語句當中!!!要加在外邊(比如if前面)