我已经和 South 打了一个星期了,没有任何进展 :(
我的网站在没有 South 的情况下可以完美运行,但是一旦我将 South 添加到站点中,我就会收到一个错误日志,其中充满了奇怪的错误,这些错误并没有告诉我任何事情(我正在使用实际的托管帐户进行开发,因为除了无论如何,我已经得到了 URL)。但是,启用 South 后,开发服务器工作得很好,只是 Apache 不行。
您能提出的任何建议将不胜感激:)
对于一些背景知识,我已经实现了一个自定义用户类进行身份验证。我正在使用 Hostgator 共享主机帐户,我认为它使用 Apache 和 mod_fcgi。这是来自 Apache 的错误日志(它在我的根 urlconf 中引用的第 7 行是“admin.autodiscover()”行):
[Tue Jul 23 00:27:40 2013] [warn] [client 137.186.44.205] mod_fcgid: stderr: File
"/home1/outreach/.local/lib/python2.6/site-packages/django/utils/importlib.py", line
35, in import_module
[Tue Jul 23 00:27:40 2013] [warn] [client 137.186.44.205] mod_fcgid: stderr: File
"/home1/outreach/.local/lib/python2.6/site-packages/django/utils/translation
/trans_real.py", line 154, in _fetch
[Tue Jul 23 00:27:40 2013] [warn] [client 137.186.44.205] mod_fcgid: stderr: File
"/home1/outreach/.local/lib/python2.6/site-packages/django/utils/translation/trans_real.py", line 172, in translation
[Tue Jul 23 00:27:40 2013] [warn] [client 137.186.44.205] mod_fcgid: stderr: File "/home1/outreach/.local/lib/python2.6/site-packages/django/utils/translation/trans_real.py", line 258, in do_translate
[Tue Jul 23 00:27:40 2013] [warn] [client 137.186.44.205] mod_fcgid: stderr: File "/home1/outreach/.local/lib/python2.6/site-packages/django/utils/translation/trans_real.py", line 276, in ugettext
[Tue Jul 23 00:27:40 2013] [warn] [client 137.186.44.205] mod_fcgid: stderr: File "/home1/outreach/.local/lib/python2.6/site-packages/django/utils/translation/__init__.py", line 71, in ugettext
[Tue Jul 23 00:27:40 2013] [warn] [client 137.186.44.205] mod_fcgid: stderr: File "/home1/outreach/.local/lib/python2.6/site-packages/django/utils/functional.py", line 130, in __text_cast
[Tue Jul 23 00:27:40 2013] [warn] [client 137.186.44.205] mod_fcgid: stderr: File "/home1/outreach/.local/lib/python2.6/site-packages/django/utils/encoding.py", line 99, in force_text
[Tue Jul 23 00:27:40 2013] [warn] [client 137.186.44.205] mod_fcgid: stderr: File "/home1/outreach/.local/lib/python2.6/site-packages/django/utils/dateformat.py", line 35, in format
[Tue Jul 23 00:27:40 2013] [warn] [client 137.186.44.205] mod_fcgid: stderr: File "/home1/outreach/.local/lib/python2.6/site-packages/django/utils/dateformat.py", line 216, in r
[Tue Jul 23 00:27:40 2013] [warn] [client 137.186.44.205] mod_fcgid: stderr: File "/home1/outreach/.local/lib/python2.6/site-packages/django/utils/dateformat.py", line 35, in format
[Tue Jul 23 00:27:40 2013] [warn] [client 137.186.44.205] mod_fcgid: stderr: File "/home1/outreach/.local/lib/python2.6/site-packages/django/utils/dateformat.py", line 312, in format
[Tue Jul 23 00:27:40 2013] [warn] [client 137.186.44.205] mod_fcgid: stderr: File "/home1/outreach/.local/lib/python2.6/site-packages/django/template/defaultfilters.py", line 715, in date
[Tue Jul 23 00:27:40 2013] [warn] [client 137.186.44.205] mod_fcgid: stderr: File "/home1/outreach/.local/lib/python2.6/site-packages/django/template/base.py", line 606, in resolve
[Tue Jul 23 00:27:40 2013] [warn] [client 137.186.44.205] mod_fcgid: stderr: File "/home1/outreach/.local/lib/python2.6/site-packages/django/template/debug.py", line 84, in render
[Tue Jul 23 00:27:40 2013] [warn] [client 137.186.44.205] mod_fcgid: stderr: File "/home1/outreach/.local/lib/python2.6/site-packages/django/template/debug.py", line 74, in render_node
[Tue Jul 23 00:27:40 2013] [warn] [client 137.186.44.205] mod_fcgid: stderr: File "/home1/outreach/.local/lib/python2.6/site-packages/django/template/base.py", line 830, in render
[Tue Jul 23 00:27:40 2013] [warn] [client 137.186.44.205] mod_fcgid: stderr: File "/home1/outreach/.local/lib/python2.6/site-packages/django/template/base.py", line 134, in _render
[Tue Jul 23 00:27:40 2013] [warn] [client 137.186.44.205] mod_fcgid: stderr: File "/home1/outreach/.local/lib/python2.6/site-packages/django/template/base.py", line 140, in render
[Tue Jul 23 00:27:40 2013] [warn] [client 137.186.44.205] mod_fcgid: stderr: File "/home1/outreach/.local/lib/python2.6/site-packages/django/views/debug.py", line 298, in get_traceback_html
[Tue Jul 23 00:27:40 2013] [warn] [client 137.186.44.205] mod_fcgid: stderr: File "/home1/outreach/.local/lib/python2.6/site-packages/django/views/debug.py", line 69, in technical_500_response
[Tue Jul 23 00:27:40 2013] [warn] [client 137.186.44.205] mod_fcgid: stderr: File "/home1/outreach/.local/lib/python2.6/site-packages/django/core/handlers/base.py", line 217, in handle_uncaught_exception
[Tue Jul 23 00:27:40 2013] [warn] [client 137.186.44.205] mod_fcgid: stderr: File "/home1/outreach/.local/lib/python2.6/site-packages/django/core/handlers/base.py", line 178, in get_response
[Tue Jul 23 00:27:40 2013] [warn] [client 137.186.44.205] mod_fcgid: stderr: File "/home1/outreach/.local/lib/python2.6/site-packages/django/core/handlers/wsgi.py", line 255, in __call__
File "/home1/outreach/.local/lib/python2.6/site-packages/django/utils/importlib.py", line 35, in import_module
File "/home1/outreach/.local/lib/python2.6/site-packages/django/db/models/loading.py", line 94, in load_app
File "/home1/outreach/.local/lib/python2.6/site-packages/django/db/models/loading.py", line 72, in _populate
File "/home1/outreach/.local/lib/python2.6/site-packages/django/db/models/loading.py", line 134, in get_apps
File "/home1/outreach/.local/lib/python2.6/site-packages/django/contrib/admin/validation.py", line 22, in validate
File "/home1/outreach/.local/lib/python2.6/site-packages/django/contrib/admin/sites.py", line 98, in register
File "/home1/outreach/.local/lib/python2.6/site-packages/django/contrib/auth/admin.py", line 178, in <module>
File "/home1/outreach/.local/lib/python2.6/site-packages/django/utils/importlib.py", line 35, in import_module
File "/home1/outreach/.local/lib/python2.6/site-packages/django/contrib/admin/__init__.py", line 29, in autodiscover
File "/home1/outreach/outreach/outreach/urls.py", line 7, in <module>
File "/home1/outreach/.local/lib/python2.6/site-packages/django/utils/importlib.py", line 35, in import_module
File "/home1/outreach/.local/lib/python2.6/site-packages/django/core/urlresolvers.py", line 342, in urlconf_module
File "/home1/outreach/.local/lib/python2.6/site-packages/django/core/urlresolvers.py", line 347, in url_patterns
File "/home1/outreach/.local/lib/python2.6/site-packages/django/core/urlresolvers.py", line 319, in resolve
File "/home1/outreach/.local/lib/python2.6/site-packages/django/core/handlers/base.py", line 103, in get_response`