过去一天,我一直在努力弄清楚我做错了什么。我在我的应用程序中更改了一些代码并收到了多条错误消息我改回来然后错误仍然出现。我更改的唯一文件是settings.py和admin.py,它们甚至没有在回溯中引用。
我确实意识到它并不多,但我完全陷入困境,所以如果有人能把我送到正确的方向,那将是一个很大的帮助!
web_1 | Traceback (most recent call last):
web_1 | File "manage.py", line 10, in <module>
web_1 | execute_from_command_line(sys.argv)
web_1 | File "/usr/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 385, in execute_from_command_line
web_1 | utility.execute()
web_1 | File "/usr/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 354, in execute
web_1 | django.setup()
web_1 | File "/usr/local/lib/python2.7/site-packages/django/__init__.py", line 21, in setup
web_1 | apps.populate(settings.INSTALLED_APPS)
web_1 | File "/usr/local/lib/python2.7/site-packages/django/apps/registry.py", line 108, in populate
web_1 | app_config.import_models(all_models)
web_1 | File "/usr/local/lib/python2.7/site-packages/django/apps/config.py", line 197, in import_models
web_1 | self.models_module = import_module(models_module_name)
web_1 | File "/usr/local/lib/python2.7/importlib/__init__.py", line 37, in import_module
web_1 | __import__(name)
web_1 | File "/usr/local/lib/python2.7/site-packages/reversion/models.py", line 265, in <module>
web_1 | class _Str(models.Func):
web_1 | AttributeError: 'module' object has no attribute 'Func'
web_1 | Unknown command: 'createinitialrevisions'
web_1 | Type 'django-admin.py help' for usage.
web_1 | ==> /srv/logs/access.log <==
web_1 |
web_1 | ==> /srv/logs/gunicorn.log <==
web_1 | Traceback (most recent call last):
web_1 | File "manage.py", line 10, in <module>
web_1 | execute_from_command_line(sys.argv)
web_1 | File "/usr/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 385, in execute_from_command_line
web_1 | utility.execute()
web_1 | File "/usr/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 354, in execute
web_1 | django.setup()
web_1 | File "/usr/local/lib/python2.7/site-packages/django/__init__.py", line 21, in setup
web_1 | apps.populate(settings.INSTALLED_APPS)
web_1 | File "/usr/local/lib/python2.7/site-packages/django/apps/registry.py", line 108, in populate
web_1 | app_config.import_models(all_models)
web_1 | File "/usr/local/lib/python2.7/site-packages/django/apps/config.py", line 197, in import_models
web_1 | self.models_module = import_module(models_module_name)
web_1 | File "/usr/local/lib/python2.7/importlib/__init__.py", line 37, in import_module
web_1 | __import__(name)
web_1 | File "/usr/local/lib/python2.7/site-packages/reversion/models.py", line 265, in <module>
web_1 | class _Str(models.Func):
web_1 | AttributeError: 'module' object has no attribute 'Func'
booking_web_1 exited with code 1