django heroku manage.py导入错误

时间:2015-05-17 23:24:35

标签: python django heroku

我正在做djangogirls教程,对编程很新,如果这有助于其他人寻找解决方案。

尝试try-catch后,我收到了以下Import Error

heroku run python manage.py migrate

我的settings.py文件如下:

Running `python manage.py migrate` attached to terminal... up, run.8303
Traceback (most recent call last):
  File "manage.py", line 10, in <module>
    execute_from_command_line(sys.argv)
  File "/app/.heroku/python/lib/python2.7/site-packages/django/core/management/__init__.py", line 385, in execute_from_c
ommand_line
    utility.execute()
  File "/app/.heroku/python/lib/python2.7/site-packages/django/core/management/__init__.py", line 354, in execute
    django.setup()
  File "/app/.heroku/python/lib/python2.7/site-packages/django/__init__.py", line 21, in setup
    apps.populate(settings.INSTALLED_APPS)
  File "/app/.heroku/python/lib/python2.7/site-packages/django/apps/registry.py", line 85, in populate
    app_config = AppConfig.create(entry)
  File "/app/.heroku/python/lib/python2.7/site-packages/django/apps/config.py", line 87, in create
    module = import_module(entry)
  File "/app/.heroku/python/lib/python2.7/importlib/__init__.py", line 37, in import_module
    __import__(name)
ImportError: No module named blog

目录:     -博客          - 迁移          - init .py          - admin.py          - models.py          - (还有几个)     - 我的网站      - myvenv      - manage.py      - (再多一点)

0 个答案:

没有答案