Skip to content

Instantly share code, notes, and snippets.

@xvaara
Created March 22, 2012 15:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xvaara/2159091 to your computer and use it in GitHub Desktop.
Save xvaara/2159091 to your computer and use it in GitHub Desktop.
Internal Server Error: /
Traceback (most recent call last):
File "/usr/local/lib/python2.6/dist-packages/django/core/handlers/base.py", line 111, in get_response
response = callback(request, *callback_args, **callback_kwargs)
File "/usr/local/lib/python2.6/dist-packages/django/utils/decorators.py", line 93, in _wrapped_view
response = view_func(request, *args, **kwargs)
File "/usr/local/lib/python2.6/dist-packages/django/views/decorators/vary.py", line 22, in inner_func
response = func(*args, **kwargs)
File "/home/webdev/bongaus/qr-spotter/qr/spotter/views.py", line 148, in index
return _base(request, 'index', c)
File "/home/webdev/bongaus/qr-spotter/qr/spotter/views.py", line 135, in _base
_base.c['user_profile'] = UserProfile.get(request.user)
File "/home/webdev/bongaus/qr-spotter/qr/spotter/models.py", line 49, in get
return u.get_profile()
AttributeError: 'AnonymousUser' object has no attribute 'get_profile'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment