我创建了一个名为“kebab'在当地,一切正常。我已经将它添加到了settings.py和url,这一切都很好。 但是,当我们将本地更改提取到开发服务器上时,ubuntu返回了没有名为' kebab'"错误。我们将它添加到devserver上的settings.py但仍然没有运气。此刻有点难过。有什么建议? 我们正在运行Ubuntu和Apache服务器。
回溯:
File "manage.py", line 10, in <module>
execute_from_command_line(sys.argv)
File "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", line 353, in execute_from_command_line
utility.execute()
File "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", line 327, in execute
django.setup()
File "/usr/local/lib/python2.7/dist-packages/django/__init__.py", line 18, in setup
apps.populate(settings.INSTALLED_APPS)
File "/usr/local/lib/python2.7/dist-packages/django/apps/registry.py", line 85, in populate
app_config = AppConfig.create(entry)
File "/usr/local/lib/python2.7/dist-packages/django/apps/config.py", line 90, in create
module = import_module(entry)
File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
__import__(name)
ImportError: No module named kebab