Here's an example stack trace:
-- Traceback (most recent call last):
File "/home/possiblecity/.virtualenvs/prod/lib/python2.7/site-packages/django/core/handlers/base.py", line 103, in get_response
resolver_match = resolver.resolve(request.path_info)
File "/home/possiblecity/.virtualenvs/prod/lib/python2.7/site-packages/django/core/urlresolvers.py", line 319, in resolve
for pattern in self.url_patterns:
File "/home/possiblecity/.virtualenvs/prod/lib/python2.7/site-packages/django/core/urlresolvers.py", line 347, in url_patterns
patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module)
File "/home/possiblecity/.virtualenvs/prod/lib/python2.7/site-packages/django/core/urlresolvers.py", line 342, in urlconf_module
self._urlconf_module = import_module(self.urlconf_name)
File "/home/possiblecity/.virtualenvs/prod/lib/python2.7/site-packages/django/utils/importlib.py", line 35, in import_module
__import__(name)
File "/home/possiblecity/possiblecity/production/possiblecity/possiblecity/urls.py", line 11, in <module>
autocomplete_light.autodiscover()
File "/home/possiblecity/.virtualenvs/prod/lib/python2.7/site-packages/autocomplete_light/registry.py", line 237, in autodiscover
_autodiscover(registry)
File "/home/possiblecity/.virtualenvs/prod/lib/python2.7/site-packages/autocomplete_light/registry.py", line 190, in _autodiscover
import_module('%s.autocomplete_light_registry' % app)
File "/home/possiblecity/.virtualenvs/prod/lib/python2.7/site-packages/django/utils/importlib.py", line 35, in import_module
__import__(name)
File "/home/possiblecity/possiblecity/production/possiblecity/possiblecity/apps/lotxlot/autocomplete_light_registry.py", line 4, in <module>
from .models import Lot
File "/home/possiblecity/possiblecity/production/possiblecity/possiblecity/apps/lotxlot/models.py", line 17, in <module>
from apps.comments.models import Comment
File "/home/possiblecity/possiblecity/production/possiblecity/possiblecity/apps/comments/models.py", line 10, in <module>
from actstream.models import followers
File "/home/possiblecity/lib/python2.7/actstream/models.py", line 22, in <module>
User = get_user_model()
File "/home/possiblecity/.virtualenvs/prod/lib/python2.7/site-packages/django/contrib/auth/__init__.py", line 127, in get_user_model
user_model = get_model(app_label, model_name)
File "/home/possiblecity/.virtualenvs/prod/lib/python2.7/site-packages/django/db/models/loading.py", line 230, in get_model
self._populate()
File "/home/possiblecity/.virtualenvs/prod/lib/python2.7/site-packages/django/db/models/loading.py", line 75, in _populate
self.load_app(app_name)
File "/home/possiblecity/.virtualenvs/prod/lib/python2.7/site-packages/django/db/models/loading.py", line 96, in load_app
models = import_module('.models', app_name)
File "/home/possiblecity/.virtualenvs/prod/lib/python2.7/site-packages/django/utils/importlib.py", line 35, in import_module
__import__(name)
File "/home/possiblecity/possiblecity/production/possiblecity/possiblecity/apps/core/models.py", line 4, in <module>
from actstream.models import Follow
ImportError: cannot import name Follow
<WSGIRequest
path:/lots/4778/,
GET:<QueryDict: {}>,
POST:<QueryDict: {}>,
COOKIES:{},
META:{'HTTP_ACCEPT': '*/*',
'HTTP_ACCEPT_ENCODING': 'gzip,deflate',
'HTTP_CONNECTION': 'close',
'HTTP_FORWARDED_REQUEST_URI': '/lots/4778/',
'HTTP_FROM': 'googlebot(at)googlebot.com',
'HTTP_HOST': 'possiblecity.co',
'HTTP_HTTPS': 'off',
'HTTP_HTTP_X_FORWARDED_PROTO': 'http',
'HTTP_USER_AGENT': 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html) ',
'HTTP_X_FORWARDED_FOR': '66.249.73.20',
'HTTP_X_FORWARDED_HOST': 'possiblecity.co',
'HTTP_X_FORWARDED_PROTO': 'http',
'HTTP_X_FORWARDED_SERVER': 'possiblecity.co',
'HTTP_X_FORWARDED_SSL': 'off',
'PATH_INFO': u'/lots/4778/',
'QUERY_STRING': '',
'RAW_URI': '/lots/4778/',
'REMOTE_ADDR': '66.249.73.20',
'REMOTE_PORT': '80',
'REQUEST_METHOD': 'GET',
'SCRIPT_NAME': u'',
'SERVER_NAME': 'possiblecity.co',
'SERVER_PORT': '80',
'SERVER_PROTOCOL': 'HTTP/1.0',
'SERVER_SOFTWARE': 'gunicorn/17.5',
'gunicorn.socket': <socket._socketobject object at 0x2a1fd70>,
'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f0d45ef51e0>,
'wsgi.file_wrapper': <class gunicorn.http.wsgi.FileWrapper at 0x2552b48>,
'wsgi.input': <gunicorn.http.body.Body object at 0x3d7e9d0>,
'wsgi.multiprocess': False,
'wsgi.multithread': False,
'wsgi.run_once': False,
'wsgi.url_scheme': 'http',
'wsgi.version': (1, 0)}>
On Monday, July 12, 2010 2:10:49 PM UTC-4, Tor Nordam wrote:
File "/home/possiblecity/.
resolver_match = resolver.resolve(request.path_
File "/home/possiblecity/.
for pattern in self.url_patterns:
File "/home/possiblecity/.
patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module)
File "/home/possiblecity/.
self._urlconf_module = import_module(self.urlconf_
File "/home/possiblecity/.
__import__(name)
File "/home/possiblecity/
autocomplete_light.
File "/home/possiblecity/.
_autodiscover(registry)
File "/home/possiblecity/.
import_module('%s.
File "/home/possiblecity/.
__import__(name)
File "/home/possiblecity/
from .models import Lot
File "/home/possiblecity/
from apps.comments.models import Comment
File "/home/possiblecity/
from actstream.models import followers
File "/home/possiblecity/lib/
User = get_user_model()
File "/home/possiblecity/.
user_model = get_model(app_label, model_name)
File "/home/possiblecity/.
self._populate()
File "/home/possiblecity/.
self.load_app(app_name)
File "/home/possiblecity/.
models = import_module('.models', app_name)
File "/home/possiblecity/.
__import__(name)
File "/home/possiblecity/
from actstream.models import Follow
ImportError: cannot import name Follow
<WSGIRequest
path:/lots/4778/,
GET:<QueryDict: {}>,
POST:<QueryDict: {}>,
COOKIES:{},
META:{'HTTP_ACCEPT': '*/*',
'HTTP_ACCEPT_ENCODING': 'gzip,deflate',
'HTTP_CONNECTION': 'close',
'HTTP_FORWARDED_REQUEST_URI': '/lots/4778/',
'HTTP_FROM': 'googlebot(at)googlebot.com',
'HTTP_HOST': 'possiblecity.co',
'HTTP_HTTPS': 'off',
'HTTP_HTTP_X_FORWARDED_PROTO': 'http',
'HTTP_USER_AGENT': 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.
'HTTP_X_FORWARDED_FOR': '66.249.73.20',
'HTTP_X_FORWARDED_HOST': 'possiblecity.co',
'HTTP_X_FORWARDED_PROTO': 'http',
'HTTP_X_FORWARDED_SERVER': 'possiblecity.co',
'HTTP_X_FORWARDED_SSL': 'off',
'PATH_INFO': u'/lots/4778/',
'QUERY_STRING': '',
'RAW_URI': '/lots/4778/',
'REMOTE_ADDR': '66.249.73.20',
'REMOTE_PORT': '80',
'REQUEST_METHOD': 'GET',
'SCRIPT_NAME': u'',
'SERVER_NAME': 'possiblecity.co',
'SERVER_PORT': '80',
'SERVER_PROTOCOL': 'HTTP/1.0',
'SERVER_SOFTWARE': 'gunicorn/17.5',
'gunicorn.socket': <socket._socketobject object at 0x2a1fd70>,
'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f0d45ef51e0>,
'wsgi.file_wrapper': <class gunicorn.http.wsgi.FileWrapper at 0x2552b48>,
'wsgi.input': <gunicorn.http.body.Body object at 0x3d7e9d0>,
'wsgi.multiprocess': False,
'wsgi.multithread': False,
'wsgi.run_once': False,
'wsgi.url_scheme': 'http',
'wsgi.version': (1, 0)}>
On Monday, July 12, 2010 2:10:49 PM UTC-4, Tor Nordam wrote:
I'm currently writing a blog framework in django, and I have it up an
running (on www.presskanne.com). During the last 20 hours or so, I
have gotten about 60 emails with error 500 messages. They seem to
originate from different pages all over the site, but they all have
two things in common:
The tracebacks all show that the problem is in importing one
particular model
The clients are all either googlebot or yahoo slurp
Also, I can't reproduce any of the errors myself. When I visit the
offending urls, everything either seems fine, or in the case of a
nonexistent page, I get a nice 404 message.
So my question is if there is anything in particular which might cause
the page to crash when a searchbot tries to load it, but not do the
same for a regular user.
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/709d15b1-8215-4689-9048-d1b4608247b2%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
No comments:
Post a Comment