(django) d:\PyPorjects\django>heroku run python manage.py migrate
Running python manage.py migrate on ⬢ desolate-caverns-46945... up, run.9858 (Free)
/app/.heroku/python/lib/python3.6/site-packages/psycopg2/__init__.py:144: UserWarning: The psycopg2 wheel package will be renamed from release 2.8; in order to keep installing from binary please use "pip install psycopg2-binary" instead. For details see: <http://initd.org/psycopg/docs/install.html#binary-install-from-pypi>.
""")
SystemCheckError: System check identified some issues:
ERRORS:
?: (staticfiles.E001) The STATICFILES_DIRS setting is not a tuple or list.
HINT: Perhaps you forgot a trailing comma?
解决方法:
1.修改requirements.txt中的psycopg2>=2.7.5修改为psycopg2-binary>=2.7.5
2.修改settings.ini中的
#下面的路径出错原因是将小括号写成了中括号
STATICFILES_DIRS = {os.path.join(BASE_DIR, 'static'),}
为
STATICFILES_DIRS = [os.path.join(BASE_DIR, 'static')]或者
STATICFILES_DIRS = (os.path.join(BASE_DIR, 'static'))