Skip to content

Instantly share code, notes, and snippets.

@andrei512
Created January 6, 2012 13:08
Show Gist options
  • Save andrei512/1570525 to your computer and use it in GitHub Desktop.
Save andrei512/1570525 to your computer and use it in GitHub Desktop.
Environment:
Request Method: GET
Request URL: http://127.0.0.1:8000/accounts/login/
Django Version: 1.3.1
Python Version: 2.6.1
Installed Applications:
['django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.messages',
'django.contrib.staticfiles',
'django.contrib.admin',
'django.contrib.admindocs',
'shortener',
'emailconfirmation',
'uni_form',
'allauth',
'allauth.account',
'allauth.socialaccount',
'allauth.facebook']
Installed Middleware:
('django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware')
Template error:
In template /Users/cosmin/Documents/workspace/taulinks/taulinks/templates/socialaccount/snippets/provider_list.html, error at line 10
Caught KeyError while rendering: request
1 : {% load allauth_tags %}
2 :
3 : {% if allauth.openid_enabled %}
4 : <li><a title="Google" class="socialaccount_provider google" href="{% openid_login_url openid="https://www.google.com/accounts/o8/id" %}">Google</a></li>
5 : {% endif %}
6 : {% if allauth.twitter_enabled %}
7 : <li><a title="Twitter" class="socialaccount_provider twitter" href="{% twitter_login_url %}">Twitter</a></li>
8 : {% endif %}
9 : {% if allauth.facebook_enabled %}
10 : <li><a title="Facebook" class="socialaccount_provider facebook" href=" {% facebook_login_url %} ">Facebook</a></li>
11 : {% endif %}
12 : {% if allauth.openid_enabled %}
13 : <li><a title="Yahoo" class="socialaccount_provider yahoo" href="{% openid_login_url openid="http://me.yahoo.com" %}">Yahoo</a></li>
14 : <li><a title="OpenID" class="socialaccount_provider openid" href="{% openid_login_url %}">OpenID</a></li>
15 : <li><a title="Hyves" class="socialaccount_provider hyves" href="{% openid_login_url openid="http://hyves.nl" %}">Hyves</a></li>
16 : {% endif %}
17 :
Traceback:
File "/Library/Python/2.6/site-packages/django/core/handlers/base.py" in get_response
111. response = callback(request, *callback_args, **callback_kwargs)
File "/Users/cosmin/Documents/workspace/taulinks/taulinks/allauth/account/views.py" in login
62. return render_to_response(template_name, RequestContext(request, ctx))
File "/Library/Python/2.6/site-packages/django/shortcuts/__init__.py" in render_to_response
20. return HttpResponse(loader.render_to_string(*args, **kwargs), **httpresponse_kwargs)
File "/Library/Python/2.6/site-packages/django/template/loader.py" in render_to_string
183. return t.render(Context(dictionary))
File "/Library/Python/2.6/site-packages/django/template/base.py" in render
123. return self._render(context)
File "/Library/Python/2.6/site-packages/django/template/base.py" in _render
117. return self.nodelist.render(context)
File "/Library/Python/2.6/site-packages/django/template/base.py" in render
744. bits.append(self.render_node(node, context))
File "/Library/Python/2.6/site-packages/django/template/debug.py" in render_node
73. result = node.render(context)
File "/Library/Python/2.6/site-packages/django/template/loader_tags.py" in render
127. return compiled_parent._render(context)
File "/Library/Python/2.6/site-packages/django/template/base.py" in _render
117. return self.nodelist.render(context)
File "/Library/Python/2.6/site-packages/django/template/base.py" in render
744. bits.append(self.render_node(node, context))
File "/Library/Python/2.6/site-packages/django/template/debug.py" in render_node
73. result = node.render(context)
File "/Library/Python/2.6/site-packages/django/template/loader_tags.py" in render
127. return compiled_parent._render(context)
File "/Library/Python/2.6/site-packages/django/template/base.py" in _render
117. return self.nodelist.render(context)
File "/Library/Python/2.6/site-packages/django/template/base.py" in render
744. bits.append(self.render_node(node, context))
File "/Library/Python/2.6/site-packages/django/template/debug.py" in render_node
73. result = node.render(context)
File "/Library/Python/2.6/site-packages/django/template/loader_tags.py" in render
64. result = block.nodelist.render(context)
File "/Library/Python/2.6/site-packages/django/template/base.py" in render
744. bits.append(self.render_node(node, context))
File "/Library/Python/2.6/site-packages/django/template/debug.py" in render_node
73. result = node.render(context)
File "/Library/Python/2.6/site-packages/django/template/defaulttags.py" in render
311. return self.nodelist_true.render(context)
File "/Library/Python/2.6/site-packages/django/template/base.py" in render
744. bits.append(self.render_node(node, context))
File "/Library/Python/2.6/site-packages/django/template/debug.py" in render_node
73. result = node.render(context)
File "/Library/Python/2.6/site-packages/django/template/defaulttags.py" in render
311. return self.nodelist_true.render(context)
File "/Library/Python/2.6/site-packages/django/template/base.py" in render
744. bits.append(self.render_node(node, context))
File "/Library/Python/2.6/site-packages/django/template/debug.py" in render_node
73. result = node.render(context)
File "/Library/Python/2.6/site-packages/django/template/loader_tags.py" in render
159. return self.render_template(self.template, context)
File "/Library/Python/2.6/site-packages/django/template/loader_tags.py" in render_template
141. output = template.render(context)
File "/Library/Python/2.6/site-packages/django/template/base.py" in render
123. return self._render(context)
File "/Library/Python/2.6/site-packages/django/template/base.py" in _render
117. return self.nodelist.render(context)
File "/Library/Python/2.6/site-packages/django/template/base.py" in render
744. bits.append(self.render_node(node, context))
File "/Library/Python/2.6/site-packages/django/template/debug.py" in render_node
73. result = node.render(context)
File "/Library/Python/2.6/site-packages/django/template/defaulttags.py" in render
311. return self.nodelist_true.render(context)
File "/Library/Python/2.6/site-packages/django/template/base.py" in render
744. bits.append(self.render_node(node, context))
File "/Library/Python/2.6/site-packages/django/template/debug.py" in render_node
73. result = node.render(context)
File "/Users/cosmin/Documents/workspace/taulinks/taulinks/allauth/facebook/templatetags/facebook_tags.py" in render
30. request = context['request']
File "/Library/Python/2.6/site-packages/django/template/context.py" in __getitem__
55. raise KeyError(key)
Exception Type: TemplateSyntaxError at /accounts/login/
Exception Value: Caught KeyError while rendering: request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment