Giter VIP home page Giter VIP logo

pennersr / django-allauth Goto Github PK

View Code? Open in Web Editor NEW
8.9K 191.0 2.9K 12.58 MB

Integrated set of Django applications addressing authentication, registration, account management as well as 3rd party (social) account authentication.

Home Page: https://allauth.org

License: MIT License

Python 95.47% JavaScript 0.30% HTML 4.08% Makefile 0.07% Emacs Lisp 0.01% Nix 0.07%
authentication django oauth2 openid-connect python saml social-login two-factor-authentication accounts login

django-allauth's People

Contributors

adamchainz avatar agriffis avatar akay7 avatar bittner avatar blueyed avatar cclauss avatar dmytrolitvinov avatar erm avatar flimm avatar iarp avatar jleclanche avatar jnns avatar jresins avatar jshwright avatar julen avatar jwhitlock avatar lukeburden avatar mskarbek avatar pennersr avatar replay avatar sih4sing5hong5 avatar sssbox avatar stuross avatar terrycojones avatar timgraham avatar tony avatar turnrdev avatar wayward710 avatar wli avatar yrik avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

django-allauth's Issues

Social Abstraction

I have an existing deployment of Django-userena, but I would like to use the Social-Login features of AllAuth, but not use the accounts management system it provides.

Is this currently possible, or will it take additional work to abstract the social stuff from the accounts stuff?

support for oauth token for Facebook ?

Hi,
first of all, great work!

I was wondering if django-allauth supports requesting oauth tokens for Facebook logins ?
As in requesting for permissions from Facebook users. if so how do I configure it?

Am I missing something ?

Best.

TemplateSyntaxError at /accounts/login/

here is the error

'allauth_tags' is not a valid tag library: Template library allauth_tags not found, tried django.templatetags.allauth_tags,django.contrib.staticfiles.templatetags.allauth_tags,django.contrib.admin.templatetags.allauth_tags,allauth.account.templatetags.allauth_tags,allauth.socialaccount.providers.facebook.templatetags.allauth_tags,allauth.socialaccount.providers.twitter.templatetags.allauth_tags

here is my settings.py

INSTALLED_APPS = (
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.messages',
'django.contrib.staticfiles',
# Uncomment the next line to enable the admin:
'django.contrib.admin',
# Uncomment the next line to enable admin documentation:
# 'django.contrib.admindocs',
'app',
'emailconfirmation',
'allauth.account',
'allauth.socialaccount',
'allauth.socialaccount.providers.facebook',
'allauth.socialaccount.providers.twitter',
)

TEMPLATE_CONTEXT_PROCESSORS = (
"django.core.context_processors.request",
"allauth.context_processors.allauth",
"allauth.account.context_processors.account",
'django.contrib.auth.context_processors.auth',
)

AUTHENTICATION_BACKENDS = (
"allauth.account.auth_backends.AuthenticationBackend",
)

what am i doing wrong?

TemplateSyntaxError at /accounts/login/

Hello, i can't fix this error...

'allauth_tags' is not a valid tag library: ImportError raised loading allauth.templatetags.allauth_tags: cannot import name token_kwargs

Template error

In template /home/krilluser/krill_emb/lib/python2.6/site-packages/allauth/templates/socialaccount/snippets/provider_list.html, error at line 1
'allauth_tags' is not a valid tag library: ImportError raised loading allauth.templatetags.allauth_tags: cannot import name token_kwargs

Seems that there is something wrong with the templatetags....
i have already created the Facebook and twitter apps and installed the app correctly ....

Thanks

Modules not found

After a pip install the Facebook and Twitter (etc) modules are not found. Turns out all subapps are not installed with setup.py.

/accounts/social/signup redirects to /accounts/login no matter what

It hits this right in the beginning of /allauth/socialaccount/views.signup:

    signup = request.session.get('socialaccount_signup')
    if not signup:
        return HttpResponseRedirect(reverse('account_login'))

And I can't see how that session variable would ever get set when someone first visits the site. Am I misunderstanding the purpose of that view? I assumed it was to allow people to signup with a social id.

AttributeError

Hello, when trying to install django-allauth on my windows machine, I’m getting an error:

C:\Djang.P\New folder\django-allauth>setup.py install
running install
running bdist_egg
running egg_info
writing requirements to django_allauth.egg-info\requires.txt
writing django_allauth.egg-info\PKG-INFO
writing top-level names to django_allauth.egg-info\top_level.txt
writing dependency_links to django_allauth.egg-info\dependency_links.txt
reading manifest file 'django_allauth.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching '*.txt' under directory 'allauth\facebook\templ
ates'
writing manifest file 'django_allauth.egg-info\SOURCES.txt'
installing library code to build\bdist.win32\egg
running install_lib
running build_py
creating build\bdist.win32\egg
creating build\bdist.win32\egg\allauth
copying build\lib\allauth\app_settings.py -> build\bdist.win32\egg\allauth
copying build\lib\allauth\context_processors.py -> build\bdist.win32\egg\allauth

creating build\bdist.win32\egg\allauth\facebook
creating build\bdist.win32\egg\allauth\facebook\templates
creating build\bdist.win32\egg\allauth\facebook\templates\facebook
copying build\lib\allauth\facebook\templates\facebook\channel.html -> build\bdis
t.win32\egg\allauth\facebook\templates\facebook
copying build\lib\allauth\facebook\templates\facebook\fbconnect.html -> build\bd
ist.win32\egg\allauth\facebook\templates\facebook
copying build\lib\allauth\models.py -> build\bdist.win32\egg\allauth
copying build\lib\allauth\tests.py -> build\bdist.win32\egg\allauth
copying build\lib\allauth\urls.py -> build\bdist.win32\egg\allauth
copying build\lib\allauth\utils.py -> build\bdist.win32\egg\allauth
copying build\lib\allauth__init__.py -> build\bdist.win32\egg\allauth
byte-compiling build\bdist.win32\egg\allauth\app_settings.py to app_settings.pyc

byte-compiling build\bdist.win32\egg\allauth\context_processors.py to context_pr
ocessors.pyc
byte-compiling build\bdist.win32\egg\allauth\models.py to models.pyc
byte-compiling build\bdist.win32\egg\allauth\tests.py to tests.pyc
byte-compiling build\bdist.win32\egg\allauth\urls.py to urls.pyc
byte-compiling build\bdist.win32\egg\allauth\utils.py to utils.pyc
byte-compiling build\bdist.win32\egg\allauth__init__.py to init.pyc
creating build\bdist.win32\egg\EGG-INFO
copying django_allauth.egg-info\PKG-INFO -> build\bdist.win32\egg\EGG-INFO
copying django_allauth.egg-info\SOURCES.txt -> build\bdist.win32\egg\EGG-INFO
copying django_allauth.egg-info\dependency_links.txt -> build\bdist.win32\egg\EG
G-INFO
copying django_allauth.egg-info\requires.txt -> build\bdist.win32\egg\EGG-INFO
copying django_allauth.egg-info\top_level.txt -> build\bdist.win32\egg\EGG-INFO
zip_safe flag not set; analyzing archive contents...
creating 'dist\django_allauth-0.4.0-py2.7.egg' and adding 'build\bdist.win32\egg
' to it
removing 'build\bdist.win32\egg' (and everything under it)
Processing django_allauth-0.4.0-py2.7.egg
Removing c:\python27\lib\site-packages\django_allauth-0.4.0-py2.7.egg
Copying django_allauth-0.4.0-py2.7.egg to c:\python27\lib\site-packages
django-allauth 0.4.0 is already the active version in easy-install.pth

Installed c:\python27\lib\site-packages\django_allauth-0.4.0-py2.7.egg
Processing dependencies for django-allauth==0.4.0
Searching for django-email-confirmation
Reading http://pypi.python.org/simple/django-email-confirmation/
Download error: [Errno 11004] getaddrinfo failed -- Some packages may not be fou
nd!
Couldn't find index page for 'django-email-confirmation' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading http://pypi.python.org/simple/
Download error: [Errno 11004] getaddrinfo failed -- Some packages may not be fou
nd!
No local packages or download links found for django-email-confirmation
Best match: None
Traceback (most recent call last):
File "C:\Djang.P\New folder\django-allauth\setup.py", line 33, in
setup(**METADATA)
File "C:\Python27\lib\distutils\core.py", line 152, in setup
dist.run_commands()
File "C:\Python27\lib\distutils\dist.py", line 953, in run_commands
self.run_command(cmd)
File "C:\Python27\lib\distutils\dist.py", line 972, in run_command
cmd_obj.run()
File "C:\Python27\lib\site-packages\setuptools\command\install.py", line 76, i
n run
self.do_egg_install()
File "C:\Python27\lib\site-packages\setuptools\command\install.py", line 104,
in do_egg_install
cmd.run()
File "C:\Python27\lib\site-packages\setuptools\command\easy_install.py", line
211, in run
self.easy_install(spec, not self.no_deps)
File "C:\Python27\lib\site-packages\setuptools\command\easy_install.py", line
427, in easy_install
return self.install_item(None, spec, tmpdir, deps, True)
File "C:\Python27\lib\site-packages\setuptools\command\easy_install.py", line
478, in install_item
self.process_distribution(spec, dist, deps)
File "C:\Python27\lib\site-packages\setuptools\command\easy_install.py", line
519, in process_distribution
[requirement], self.local_index, self.easy_install
File "C:\Python27\lib\site-packages\pkg_resources.py", line 563, in resolve
dist = best[req.key] = env.best_match(req, self, installer)
File "C:\Python27\lib\site-packages\pkg_resources.py", line 799, in best_match

return self.obtain(req, installer) # try and download/install

File "C:\Python27\lib\site-packages\pkg_resources.py", line 811, in obtain
return installer(requirement)
File "C:\Python27\lib\site-packages\setuptools\command\easy_install.py", line
434, in easy_install
self.local_index
File "C:\Python27\lib\site-packages\setuptools\package_index.py", line 475, in
fetch_distribution
return dist.clone(location=self.download(dist.location, tmpdir))
AttributeError: 'NoneType' object has no attribute 'clone'

How can I get rid of that? Thanks!

HTTP method acquiring twitter request token

When I try to login via twitter I get the following error:

OAuthError at /accounts/twitter/login/
Invalid response while obtaining request token from "api.twitter.com".

Request Method: GET
Request URL: http://mydomain/accounts/twitter/login/
Django Version: 1.3.1
Exception Type: OAuthError
Exception Value: Invalid response while obtaining request token from "api.twitter.com".

According with twitter documentation you should use the POST HTTP method. Maybe this can fix this issue.

TIA,
P.

Signal for registration, save anonymous session data

Some more signals around registration might be useful. In addition to extra info from a social connect mentioned in #43, a signal that can be included is right before registration, send the request/session. This would be useful for associating any anonymous information saved in a session with the newly created user before it's wiped out on login.

Unused template files

The following two template files are not being used: timezone_change.html, language_change.html

While on the topic of cleanup, the following is in account.urls but is not being used.

signup_view = "pinax.apps.signup_codes.views.signup"

Django not able to find static files when using allauth

When I use allauth, everything seems to work fine except that Django is now unable to find the static files. Without allauth all the static files are being rendered. the settings for allauth requires to add

TEMPLATE_CONTEXT_PROCESSORS

I did not have this field in my settings file earlier. Is there something that I am missing? How should I solve this problem. When I see the DEBUG console I can see it is trying to fetch the css file as

"GET /accounts/login/css/contact.css"

whereas it should be doing

"GET /static/css/contact.css"

Is avatar implemented in FacebookAccount?

Hi,
I can see from code that facebook has not implementation for:

def get_avatar_url(self):
return None

am I supposed to do it myself?

great software, thank you very much
Elio

Using *_login_url tags unable to redirect to url provided with 'next' argument

Currently if using any of the {% <Social_network>_login_url %} tags within your templates you are unable to force 'allauth' to redirect to some other url other than to 'socialaccount_connections' url (meaning to connections.html template).
Though infrastructure for this is there - they accept next parameters within this custom tags - this parameter value is not taken into consideration.
This is very hand for examples where you want to list social connections registration on some custom pages (read urls) that you then want to redirect to once your new social account was created (registered).
The expected behavior would be to specify for example {% facebook_login_url next=profile_url %} and expect a link with this url to redirect to profile_url after the FB social account gets created/registered.

MySQL OpenID and Identity Field

I notice that you are aware of the issue relating to the identify field in the OpenID Account model judging by this comment on line 7 of allauth/openid.models.py

# Ideally, URLField(max_length=1024, unique=True) would be used
# for identity.  However, MySQL has a max_length limitation of 255
# for URLField. So let's be pragmetic and switch to TextField...
# TODO: Model field validation to ensure valid URLs

However, your solution does not fix the problem.

First of all, I see you have created a South migration to change the field. The problem is that the initial migration will always fail because MySQL will not allow you to create a field with max_length 1024. Thus, it is impossible to even get to the second migration which uses a text field instead.

I went and deleted both migrations and created just one. Of course, that doesn't work either.

You specified the TextField to be unique, which just doesn't work.

http://code.djangoproject.com/ticket/2495

Django allauth will not work in MySQL until you fix this.

The signup form does not render properly when included in the login template

The current template structure that has been given, has a separate page for all the login signin and signup processes. But I wanted to keep the signup form via username/password in the same template as the login template. So instead of just giving a link to the signup form, I copied the whole form in login template.

However the problem with this is that the signup form is not being rendered correctly. It does not have the confirm password and email field even though I have set it in the settings file. However when I visit the signup template from the url, then I see the correct form.

It must be since the settings are checked in the signup view and when I visit login template I do not go through the signup view, isn't there a way that I could combine the two.

setup.py installation error

bash setup.py install
from: can't read /var/mail/setuptools
setup.py: line 4: syntax error near unexpected token (' setup.py: line 4:METADATA = dict('

Problem with urls?

I've been having a really odd issue with django-allauth - the login url is failing, but only when DEBUG=False, with the following error (which also happened with twitter_login once I disabled the openid provider).

File "/********/python2.6/site-packages/allauth/socialaccount/templatetags/socialaccount_tags.py", line 26, in render
    return provider.get_login_url(request, **query)

File "/********/python2.6/site-packages/allauth/socialaccount/providers/openid/models.py", line 61, in get_login_url
   url = reverse('openid_login')

File "/********/python2.6/site-packages/django/core/urlresolvers.py", line 476, in reverse
    return iri_to_uri(resolver._reverse_with_prefix(view, prefix, *args, **kwargs))

File "/********/python2.6/site-packages/django/core/urlresolvers.py", line 396, in _reverse_with_prefix
    "arguments '%s' not found." % (lookup_view_s, args, kwargs))

NoReverseMatch: Reverse for 'openid_login' with arguments '()' and keyword arguments '{}' not found.

I currently have no idea what's causing this - I can't recreate the bug on the development server, which has almost identical settings. As far as I can work out, the urls for individual providers aren't being loaded.

The pages it occurs on are the login and social connections pages, both with and without custom templates.

Can anyone suggest what I might be doing wrong to cause this?

site_base.html not included in templates

  1. The base.html template extends site_base.html, but there is no site_base.html included in allauth/templates/account.
  2. Also, templates/account/base.html did not work for me until I edited it to read extends "account/site_base.html" instead of extends "site_base.html".

ImportError: No module named facebook

After a fresh installation and environment setup, I am getting this import error. Should the facebook module be installed explicitly?

The traceback is as follows:

Environment:

Request Method: GET
Request URL: http://localhost:8000/accounts/facebook/

Django Version: 1.3
Python Version: 2.6.1
Installed Applications:
['django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.messages',
'django.contrib.admin',
'emailconfirmation',
'uni_form',
'allauth',
'allauth.account',
'allauth.socialaccount',
'allauth.twitter',
'allauth.openid',
'allauth.facebook',
'questions']
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',
'django.middleware.transaction.TransactionMiddleware')

Traceback:
File "/Library/Python/2.6/site-packages/django/core/handlers/base.py" in get_response

  1.                         request.path_info)
    
    File "/Library/Python/2.6/site-packages/django/core/urlresolvers.py" in resolve
  2.                 sub_match = pattern.resolve(new_path)
    
    File "/Library/Python/2.6/site-packages/django/core/urlresolvers.py" in resolve
  3.                 sub_match = pattern.resolve(new_path)
    
    File "/Library/Python/2.6/site-packages/django/core/urlresolvers.py" in resolve
  4.         for pattern in self.url_patterns:
    
    File "/Library/Python/2.6/site-packages/django/core/urlresolvers.py" in _get_url_patterns
  5.     patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module)
    
    File "/Library/Python/2.6/site-packages/django/core/urlresolvers.py" in _get_urlconf_module
  6.         self._urlconf_module = import_module(self.urlconf_name)
    
    File "/Library/Python/2.6/site-packages/django/utils/importlib.py" in import_module
  7. **import**(name)
    
    File "/Users/omat/workspace/kimlerdensin/env/lib/python2.6/site-packages/allauth/facebook/urls.py" in
  8. import views
    File "/Users/omat/workspace/kimlerdensin/env/lib/python2.6/site-packages/allauth/facebook/views.py" in
  9. from facebook import GraphAPI, GraphAPIError

Exception Type: ImportError at /accounts/facebook/
Exception Value: No module named facebook

installing django-auth with PIP downloads and installs a whole new copy of django

Yikes! That can't be intentional:

$ pip install django-allauth
Downloading/unpacking django-allauth
Downloading django-allauth-0.4.0.tar.gz
Running setup.py egg_info for package django-allauth
warning: no files found matching '*.txt' under directory 'allauth/facebook/templates'
Downloading/unpacking django (from django-allauth)
Downloading Django-1.4.tar.gz (7.6Mb): 7.6Mb downloaded
Running setup.py egg_info for package django

Facebook registration with an already-taken email.

Consider this:

A user goes to your website, registers a regular account.

Later, he comes back to the website, his session expired, he is no longer logged in. He clicks the Facebook connect button, maybe he forgot that he hasn't used Facebook to log in when he registered.

He gets a signup error.

This is because allauth.socialaccount.helpers._process_signup clears the app_settings.auto_signup flag when auto_signup is enabled and the email is already used.

This is partially correct, since allauth cannot just trust the social network to validate the user's email, so it cannot simply associate the oauth ID to the existing account.

But this should instead render a template with:
"This email is already in use, please sign in and click on the Facebook login button again to associate the Facebook account to your <site_name> account."

max_length of automatically obtained email addresses is not validated

Email addresses obtained from e.g. Facebook are directly copied into User.email without checking EmailField.max_length (=75). Long email addresses result in "DatabaseError: value too long for type character varying(75)"

For reference, see:
http://code.djangoproject.com/ticket/11365

Due to backwards compatibility Django will not fix User.email.max_length. To work around this, EmailAddress.email could be changed. Bug report filed for django-email-confirmation.

TODO: Pending the above discussion, email addresses longer than the max length should be disregarded.

Store Twitter access token for later use

I am have used this app to allow twitter login on my website. It creates a twitter, social and user model. But the User model password field contains '!'. Why is the twitter (hash converted)password of that user not stored there? how to deal with this?

Redirects to Twitter authorization on every login.

Should it be taking the user to Twitter on every login (after they have signed up using Twitter)? The user experience seems to be that it should see that the user exists, login and redirect to the setup landing page (without going to Twitter).

When I compare this with Facebook, I get a popup but then it quickly closes and takes me to the setup landing page. This seems correct.

Is this a known issue for Twitter?

Left over legacy code to django-friends?

Just browsing code, I see a reference here to from friends.models import JoinInvitation.
That looks to be part of jtauber's django-friends which isn't a requirement of this project.

Is this just crufty legacy code? (it has been in there since your first commit)

password reset does not take into account verification setting

Even when you have..

ACCOUNT_EMAIL_VERIFICATION = False

in settings you still get an error when trying to request a new password for an existing account:

"E-mail address not verified for any user account"

While when set to False this should not matter right?

setup broken

try this:
sudo pip install git+https://github.com/pennersr/django-allauth.git

after install it doesn't include sub-models - no any subdirectory except facebook wich includes some html files.
ls -lrt /Library/Python/2.7/site-packages/allauth

-rw-r--r-- 1 root wheel 2176 20 Mar 22:11 utils.py
-rw-r--r-- 1 root wheel 765 20 Mar 22:11 urls.py
-rw-r--r-- 1 root wheel 627 20 Mar 22:11 tests.py
-rw-r--r-- 1 root wheel 0 20 Mar 22:11 models.py
-rw-r--r-- 1 root wheel 328 20 Mar 22:11 context_processors.py
-rw-r--r-- 1 root wheel 402 20 Mar 22:11 app_settings.py
-rw-r--r-- 1 root wheel 0 20 Mar 22:11 init.py
-rw-r--r-- 1 root wheel 2810 20 Mar 22:11 utils.pyc
-rw-r--r-- 1 root wheel 797 20 Mar 22:11 urls.pyc
-rw-r--r-- 1 root wheel 1036 20 Mar 22:11 tests.pyc
-rw-r--r-- 1 root wheel 138 20 Mar 22:11 models.pyc
drwxr-xr-x 3 root wheel 102 20 Mar 22:11 facebook
-rw-r--r-- 1 root wheel 616 20 Mar 22:11 context_processors.pyc
-rw-r--r-- 1 root wheel 517 20 Mar 22:11 app_settings.pyc
-rw-r--r-- 1 root wheel 140 20 Mar 22:11 init.pyc

Incorrect URL in template

Environment:

Request Method: GET
Request URL: http://localhost:8000/account/signup/
Django Version: 1.2.1
Python Version: 2.7.0
Installed Applications:
['django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.messages',
'django.contrib.humanize',
'pinax.templatetags',
'staticfiles',
'debug_toolbar',
'mailer',
'uni_form',
'django_openid',
'ajax_validation',
'timezones',
'emailconfirmation',
'about',
'allauth',
'allauth.account',
'allauth.socialaccount',
'allauth.twitter',
'allauth.openid',
'allauth.facebook']
Installed Middleware:
['django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django_openid.consumer.SessionConsumer',
'django.contrib.messages.middleware.MessageMiddleware',
'pinax.apps.account.middleware.LocaleMiddleware',
'pinax.middleware.security.HideSensistiveFieldsMiddleware',
'debug_toolbar.middleware.DebugToolbarMiddleware']

Template error:
In template /Users/issackelly/virtualenvs/try-d-a-2/lib/python2.7/site-packages/pinax/templates/default/account/signup.html, error at line 14
Caught NoReverseMatch while rendering: Reverse for 'acct_login' with arguments '()' and keyword arguments '{}' not found.
4 : {% load uni_form_tags %}

5 :

6 : {% block head_title %}{% trans "Signup" %}{% endblock %}

7 :

8 : {% block body %}

9 :

{% trans "Sign Up" %}

10 :

11 : {% if user.is_authenticated %}

12 :

{% trans "You are already logged in." %}

13 : {% else %}

14 :

{% trans "Already have an account?" %} {% trans "Log In" %}!

15 :

16 :

17 : {% csrf_token %}

18 :

19 : {{ form|as_uni_form }}

20 : {% if redirect_field_value %}

21 :

22 : {% endif %}

23 :

24 : <input type="submit" value="{% trans "Sign Up »" %}" />

Traceback:
File "/Users/issackelly/virtualenvs/try-d-a-2/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response

  1.                 response = callback(request, _callback_args, *_callback_kwargs)
    
    File "/Users/issackelly/virtualenvs/try-d-a-2/src/allauth/allauth/account/views.py" in signup
  2. return render_to_response(template_name, RequestContext(request, ctx))
    
    File "/Users/issackelly/virtualenvs/try-d-a-2/lib/python2.7/site-packages/django/shortcuts/init.py" in render_to_response
  3. return HttpResponse(loader.render_to_string(_args, *_kwargs), **httpresponse_kwargs)
    
    File "/Users/issackelly/virtualenvs/try-d-a-2/lib/python2.7/site-packages/django/template/loader.py" in render_to_string
  4. return t.render(context_instance)
    
    File "/Users/issackelly/virtualenvs/try-d-a-2/lib/python2.7/site-packages/django/test/utils.py" in instrumented_test_render
  5. return self.nodelist.render(context)
    
    File "/Users/issackelly/virtualenvs/try-d-a-2/lib/python2.7/site-packages/django/template/init.py" in render
  6.             bits.append(self.render_node(node, context))
    
    File "/Users/issackelly/virtualenvs/try-d-a-2/lib/python2.7/site-packages/django/template/debug.py" in render_node
  7.         result = node.render(context)
    
    File "/Users/issackelly/virtualenvs/try-d-a-2/lib/python2.7/site-packages/django/template/loader_tags.py" in render
  8.     return compiled_parent._render(context)
    
    File "/Users/issackelly/virtualenvs/try-d-a-2/lib/python2.7/site-packages/django/template/init.py" in _render
  9.     return self.nodelist.render(context)
    
    File "/Users/issackelly/virtualenvs/try-d-a-2/lib/python2.7/site-packages/django/template/init.py" in render
  10.             bits.append(self.render_node(node, context))
    
    File "/Users/issackelly/virtualenvs/try-d-a-2/lib/python2.7/site-packages/django/template/debug.py" in render_node
  11.         result = node.render(context)
    
    File "/Users/issackelly/virtualenvs/try-d-a-2/lib/python2.7/site-packages/django/template/loader_tags.py" in render
  12.     return compiled_parent._render(context)
    
    File "/Users/issackelly/virtualenvs/try-d-a-2/lib/python2.7/site-packages/django/template/init.py" in _render
  13.     return self.nodelist.render(context)
    
    File "/Users/issackelly/virtualenvs/try-d-a-2/lib/python2.7/site-packages/django/template/init.py" in render
  14.             bits.append(self.render_node(node, context))
    
    File "/Users/issackelly/virtualenvs/try-d-a-2/lib/python2.7/site-packages/django/template/debug.py" in render_node
  15.         result = node.render(context)
    
    File "/Users/issackelly/virtualenvs/try-d-a-2/lib/python2.7/site-packages/django/template/loader_tags.py" in render
  16.         result = block.nodelist.render(context)
    
    File "/Users/issackelly/virtualenvs/try-d-a-2/lib/python2.7/site-packages/django/template/init.py" in render
  17.             bits.append(self.render_node(node, context))
    
    File "/Users/issackelly/virtualenvs/try-d-a-2/lib/python2.7/site-packages/django/template/debug.py" in render_node
  18.         result = node.render(context)
    
    File "/Users/issackelly/virtualenvs/try-d-a-2/lib/python2.7/site-packages/django/template/defaulttags.py" in render
  19.         return self.nodelist_false.render(context)
    
    File "/Users/issackelly/virtualenvs/try-d-a-2/lib/python2.7/site-packages/django/template/init.py" in render
  20.             bits.append(self.render_node(node, context))
    
    File "/Users/issackelly/virtualenvs/try-d-a-2/lib/python2.7/site-packages/django/template/debug.py" in render_node
  21.         result = node.render(context)
    
    File "/Users/issackelly/virtualenvs/try-d-a-2/lib/python2.7/site-packages/django/template/defaulttags.py" in render
  22.                     raise e
    

Exception Type: TemplateSyntaxError at /account/signup/
Exception Value: Caught NoReverseMatch while rendering: Reverse for 'acct_login' with arguments '()' and keyword arguments '{}' not found.

/accounts/profile/ redirection 404 after facebook login

Upon signing up using facebook on the accounts/signup page the redirection fails with a 404. I've been digging through the source but its not clear to me how to override this with a redirection to a custom page.

As a separate note, I'm intergrating the allauth with lazysignup and am not sure of the best way to proceed. Lazysignup has already created a user on the database using a django sessons framework , thus my user in no longer 'anonymous'. Lazysignup provides a 'convert' view to take username, password, etc, and update the current lazyuser account (i.e. not create a new one). What would be the best way to enable social conversion of a lazyuser account? So that at the end of the survey, the user can link their results by existing user id to a social account. Any suggestions appreciated.

EmailAddress not really required in DisconnectForm

I was using django-allauth for an existing website for only connecting/disconnecting to accounts.
But while disconnecting FB account, the error message said that account is not connected to EmailAddress.
I don't think I need EmailAddress because I am using my custom authentication to log in.
I've commented out that line and the django-allauth continued to behave decently.
I suggest that we introduce a setting(boolean value) that makes that line in socialaccount/forms.py/DisconnectForm/clean() optional.
E.g.

if settings.USE_EMAIL_ADDRESS and EmailAddress.objects.filter(user=self.user,
verified=True).count() == 0:
raise forms.ValidationError(_("Your local account has no verified e-mail address."))

Do you think it could be worth pull request?

TemplateSyntaxError at /accounts/login/

Request Method: GET
Request URL: http://localhost:8000/accounts/login/
Django Version: 1.3
Exception Type: TemplateSyntaxError
Exception Value:
Caught DoesNotExist while rendering: FacebookApp matching query does not exist.
Exception Location: /usr/lib/pymodules/python2.7/django/db/models/query.py in get, line 349
Python Executable: /usr/bin/python
Python Version: 2.7.2

Caught DoesNotExist while rendering: FacebookApp matching query does not exist.
1 {% load allauth_tags %}
2
3 {% if allauth.facebook_enabled %}
4 {% fbconnect %}
5 {% endif %}
6
7

Save Access Token with the rest of user information...

It would be interesting to save the access_token with the rest of user Information in order to access specific items of facebook.

I already made ​​this change directly in the source code if you want the code just email me.

congratulations for the great job !

Thxx

login template issue

Hello, can you please help me with this one?

Am I doing something wrong or it is a bug?

TemplateSyntaxError at /accounts/login/

Caught KeyError while rendering: 'request'

Request Method: GET
Request URL: http://127.0.0.1:8000/accounts/login/
Django Version: 1.3.1
Exception Type: TemplateSyntaxError
Exception Value:

Caught KeyError while rendering: 'request'

Exception Location: /usr/local/lib/python2.7/dist-packages/django/template/context.py in getitem, line 55
Template error

In template /usr/local/lib/python2.7/dist-packages/django_allauth-0.1.0-py2.7.egg/allauth/templates/socialaccount/snippets/provider_list.html, error at line 4

Caught KeyError while rendering: 'request'

Line 4: "
  • <a title="Google" class="socialaccount_provider google" href="{% openid_login_url openid="https://www.google.com/accounts/o8/id" %}">Google
  • "

    Environment:

    Request Method: GET
    Request URL: http://127.0.0.1:8000/accounts/login/

    Django Version: 1.3.1
    Python Version: 2.7.1
    Installed Applications:
    ['django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.sites',
    'django.contrib.messages',
    'django.contrib.staticfiles',
    'emailconfirmation',
    'uni_form',
    'allauth',
    'allauth.account',
    'allauth.socialaccount',
    'allauth.twitter',
    'allauth.openid',
    'allauth.facebook',
    'chat']
    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 /usr/local/lib/python2.7/dist-packages/django_allauth-0.1.0-py2.7.egg/allauth/templates/socialaccount/snippets/provider_list.html, error at line 4
    Caught KeyError while rendering: 'request'
    1 : {% load allauth_tags %}

    2 :

    3 : {% if allauth.openid_enabled %}

    4 :

  • <a title="Google" class="socialaccount_provider google" href=" {% openid_login_url openid="https://www.google.com/accounts/o8/id" %} ">Google
  • 5 : {% endif %}

    6 : {% if allauth.twitter_enabled %}

    7 :

  • Twitter
  • 8 : {% endif %}

    9 : {% if allauth.facebook_enabled %}

    10 :

  • Facebook
  • 11 : {% endif %}

    12 : {% if allauth.openid_enabled %}

    13 :

  • <a title="Yahoo" class="socialaccount_provider yahoo" href="{% openid_login_url openid="http://me.yahoo.com" %}">Yahoo
  • 14 :

  • OpenID
  • Traceback:
    File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py" in get_response

    1.                     response = callback(request, _callback_args, *_callback_kwargs)
      
      File "/usr/local/lib/python2.7/dist-packages/django_allauth-0.1.0-py2.7.egg/allauth/account/views.py" in login
    2. return render_to_response(template_name, RequestContext(request, ctx))
      
      File "/usr/local/lib/python2.7/dist-packages/django/shortcuts/init.py" in render_to_response
    3. return HttpResponse(loader.render_to_string(_args, *_kwargs), **httpresponse_kwargs)
      
      File "/usr/local/lib/python2.7/dist-packages/django/template/loader.py" in render_to_string
    4.     return t.render(Context(dictionary))
      
      File "/usr/local/lib/python2.7/dist-packages/django/template/base.py" in render
    5.         return self._render(context)
      
      File "/usr/local/lib/python2.7/dist-packages/django/template/base.py" in _render
    6.     return self.nodelist.render(context)
      
      File "/usr/local/lib/python2.7/dist-packages/django/template/base.py" in render
    7.             bits.append(self.render_node(node, context))
      
      File "/usr/local/lib/python2.7/dist-packages/django/template/debug.py" in render_node
    8.         result = node.render(context)
      
      File "/usr/local/lib/python2.7/dist-packages/django/template/loader_tags.py" in render
    9.     return compiled_parent._render(context)
      
      File "/usr/local/lib/python2.7/dist-packages/django/template/base.py" in _render
    10.     return self.nodelist.render(context)
      
      File "/usr/local/lib/python2.7/dist-packages/django/template/base.py" in render
    11.             bits.append(self.render_node(node, context))
      
      File "/usr/local/lib/python2.7/dist-packages/django/template/debug.py" in render_node
    12.         result = node.render(context)
      
      File "/usr/local/lib/python2.7/dist-packages/django/template/loader_tags.py" in render
    13.     return compiled_parent._render(context)
      
      File "/usr/local/lib/python2.7/dist-packages/django/template/base.py" in _render
    14.     return self.nodelist.render(context)
      
      File "/usr/local/lib/python2.7/dist-packages/django/template/base.py" in render
    15.             bits.append(self.render_node(node, context))
      
      File "/usr/local/lib/python2.7/dist-packages/django/template/debug.py" in render_node
    16.         result = node.render(context)
      
      File "/usr/local/lib/python2.7/dist-packages/django/template/loader_tags.py" in render
    17.         result = block.nodelist.render(context)
      
      File "/usr/local/lib/python2.7/dist-packages/django/template/base.py" in render
    18.             bits.append(self.render_node(node, context))
      
      File "/usr/local/lib/python2.7/dist-packages/django/template/debug.py" in render_node
    19.         result = node.render(context)
      
      File "/usr/local/lib/python2.7/dist-packages/django/template/defaulttags.py" in render
    20.         return self.nodelist_true.render(context)
      
      File "/usr/local/lib/python2.7/dist-packages/django/template/base.py" in render
    21.             bits.append(self.render_node(node, context))
      
      File "/usr/local/lib/python2.7/dist-packages/django/template/debug.py" in render_node
    22.         result = node.render(context)
      
      File "/usr/local/lib/python2.7/dist-packages/django/template/defaulttags.py" in render
    23.         return self.nodelist_true.render(context)
      
      File "/usr/local/lib/python2.7/dist-packages/django/template/base.py" in render
    24.             bits.append(self.render_node(node, context))
      
      File "/usr/local/lib/python2.7/dist-packages/django/template/debug.py" in render_node
    25.         result = node.render(context)
      
      File "/usr/local/lib/python2.7/dist-packages/django/template/loader_tags.py" in render
    26.     return self.render_template(self.template, context)
      
      File "/usr/local/lib/python2.7/dist-packages/django/template/loader_tags.py" in render_template
    27.     output = template.render(context)
      
      File "/usr/local/lib/python2.7/dist-packages/django/template/base.py" in render
    28.         return self._render(context)
      
      File "/usr/local/lib/python2.7/dist-packages/django/template/base.py" in _render
    29.     return self.nodelist.render(context)
      
      File "/usr/local/lib/python2.7/dist-packages/django/template/base.py" in render
    30.             bits.append(self.render_node(node, context))
      
      File "/usr/local/lib/python2.7/dist-packages/django/template/debug.py" in render_node
    31.         result = node.render(context)
      
      File "/usr/local/lib/python2.7/dist-packages/django/template/defaulttags.py" in render
    32.         return self.nodelist_true.render(context)
      
      File "/usr/local/lib/python2.7/dist-packages/django/template/base.py" in render
    33.             bits.append(self.render_node(node, context))
      
      File "/usr/local/lib/python2.7/dist-packages/django/template/debug.py" in render_node
    34.         result = node.render(context)
      
      File "/usr/local/lib/python2.7/dist-packages/django_allauth-0.1.0-py2.7.egg/allauth/openid/templatetags/openid_tags.py" in render
    35.         request = context['request']
      
      File "/usr/local/lib/python2.7/dist-packages/django/template/context.py" in getitem
    36.     raise KeyError(key)
      

    Exception Type: TemplateSyntaxError at /accounts/login/
    Exception Value: Caught KeyError while rendering: 'request'

    Uni-Form not in requirements

    Environment:

    Request Method: GET
    Request URL: http://localhost:8000/accounts/signup/
    Django Version: 1.2.3
    Python Version: 2.7.0
    Installed Applications:
    ['django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.sites',
    'django.contrib.messages',
    'allauth',
    'allauth.account',
    'allauth.socialaccount',
    'allauth.twitter',
    'allauth.openid',
    'allauth.facebook',
    'django.contrib.admin',
    'django.contrib.admindocs']
    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/issackelly/virtualenvs/try-django-allauth/lib/python2.7/site-packages/allauth/templates/account/signup.html, error at line 4
    'uni_form_tags' is not a valid tag library: Template library uni_form_tags not found, tried django.templatetags.uni_form_tags,allauth.account.templatetags.uni_form_tags,allauth.facebook.templatetags.uni_form_tags,django.contrib.admin.templatetags.uni_form_tags
    1 : {% extends "site_base.html" %}

    2 :

    3 : {% load i18n %}

    4 : {% load uni_form_tags %}

    5 :

    6 : {% block head_title %}{% trans "Signup" %}{% endblock %}

    7 :

    8 : {% block body %}

    9 :

    {% trans "Sign Up" %}

    10 :

    11 : {% if user.is_authenticated %}

    12 : {% include "account/snippets/already_logged_in.html" %}

    13 : {% else %}

    14 :

    {% trans "Already have an account?" %} {% trans "Sign in" %}.

    Traceback:
    File "/Users/issackelly/virtualenvs/try-django-allauth/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response

    1.                 response = callback(request, _callback_args, *_callback_kwargs)
      
      File "/Users/issackelly/virtualenvs/try-django-allauth/lib/python2.7/site-packages/allauth/account/views.py" in signup
    2. return render_to_response(template_name, RequestContext(request, ctx))
      
      File "/Users/issackelly/virtualenvs/try-django-allauth/lib/python2.7/site-packages/django/shortcuts/init.py" in render_to_response
    3. return HttpResponse(loader.render_to_string(_args, *_kwargs), **httpresponse_kwargs)
      
      File "/Users/issackelly/virtualenvs/try-django-allauth/lib/python2.7/site-packages/django/template/loader.py" in render_to_string
    4.     t = get_template(template_name)
      
      File "/Users/issackelly/virtualenvs/try-django-allauth/lib/python2.7/site-packages/django/template/loader.py" in get_template
    5. template, origin = find_template(template_name)
      
      File "/Users/issackelly/virtualenvs/try-django-allauth/lib/python2.7/site-packages/django/template/loader.py" in find_template
    6.         source, display_name = loader(name, dirs)
      
      File "/Users/issackelly/virtualenvs/try-django-allauth/lib/python2.7/site-packages/django/template/loader.py" in call
    7.     return self.load_template(template_name, template_dirs)
      
      File "/Users/issackelly/virtualenvs/try-django-allauth/lib/python2.7/site-packages/django/template/loader.py" in load_template
    8.         template = get_template_from_string(source, origin, template_name)
      
      File "/Users/issackelly/virtualenvs/try-django-allauth/lib/python2.7/site-packages/django/template/loader.py" in get_template_from_string
    9. return Template(source, origin, name)
      
      File "/Users/issackelly/virtualenvs/try-django-allauth/lib/python2.7/site-packages/django/template/init.py" in init
    10.     self.nodelist = compile_string(template_string, origin)
      
      File "/Users/issackelly/virtualenvs/try-django-allauth/lib/python2.7/site-packages/django/template/init.py" in compile_string
    11. return parser.parse()
      
      File "/Users/issackelly/virtualenvs/try-django-allauth/lib/python2.7/site-packages/django/template/init.py" in parse
    12.                 compiled_result = compile_func(self, token)
      
      File "/Users/issackelly/virtualenvs/try-django-allauth/lib/python2.7/site-packages/django/template/loader_tags.py" in do_extends
    13. nodelist = parser.parse()
      
      File "/Users/issackelly/virtualenvs/try-django-allauth/lib/python2.7/site-packages/django/template/init.py" in parse
    14.                 compiled_result = compile_func(self, token)
      
      File "/Users/issackelly/virtualenvs/try-django-allauth/lib/python2.7/site-packages/django/template/defaulttags.py" in load
    15.                                   (taglib, e))
      

    Exception Type: TemplateSyntaxError at /accounts/signup/
    Exception Value: 'uni_form_tags' is not a valid tag library: Template library uni_form_tags not found, tried django.templatetags.uni_form_tags,allauth.account.templatetags.uni_form_tags,allauth.facebook.templatetags.uni_form_tags,django.contrib.admin.templatetags.uni_form_tags

    emailconfirmation

    $ python manage.py syncdb
    Traceback (most recent call last):
    File "manage.py", line 11, in
    execute_manager(settings)
    File "/Users/issackelly/virtualenvs/try-django-allauth/lib/python2.7/site-packages/django/core/management/init.py", line 438, in execute_manager
    utility.execute()
    File "/Users/issackelly/virtualenvs/try-django-allauth/lib/python2.7/site-packages/django/core/management/init.py", line 379, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
    File "/Users/issackelly/virtualenvs/try-django-allauth/lib/python2.7/site-packages/django/core/management/base.py", line 191, in run_from_argv
    self.execute(_args, *_options.dict)
    File "/Users/issackelly/virtualenvs/try-django-allauth/lib/python2.7/site-packages/django/core/management/base.py", line 219, in execute
    self.validate()
    File "/Users/issackelly/virtualenvs/try-django-allauth/lib/python2.7/site-packages/django/core/management/base.py", line 249, in validate
    num_errors = get_validation_errors(s, app)
    File "/Users/issackelly/virtualenvs/try-django-allauth/lib/python2.7/site-packages/django/core/management/validation.py", line 28, in get_validation_errors
    for (app_name, error) in get_app_errors().items():
    File "/Users/issackelly/virtualenvs/try-django-allauth/lib/python2.7/site-packages/django/db/models/loading.py", line 146, in get_app_errors
    self._populate()
    File "/Users/issackelly/virtualenvs/try-django-allauth/lib/python2.7/site-packages/django/db/models/loading.py", line 64, in _populate
    self.load_app(app_name)
    File "/Users/issackelly/virtualenvs/try-django-allauth/lib/python2.7/site-packages/django/db/models/loading.py", line 78, in load_app
    models = import_module('.models', app_name)
    File "/Users/issackelly/virtualenvs/try-django-allauth/lib/python2.7/site-packages/django/utils/importlib.py", line 35, in import_module
    import(name)
    File "/Users/issackelly/virtualenvs/try-django-allauth/lib/python2.7/site-packages/allauth/account/models.py", line 12, in
    from emailconfirmation.models import EmailAddress, EmailConfirmation
    ImportError: No module named emailconfirmation.models

    Caught TemplateDoesNotExist while rendering: facebook/fbconnect.html

    Looking at some of your project forks it seems that others have fixed this issue by creating this required template. Are you planning on integrating their work? Or is there a reason why i am getting the above error?

    Thanks in advance - really loving the concept of this app, just desperately trying to get it to work :)

    Template issues

    Hi.

    I've got the exact same problem as Issue #19 but it is closed and no answer about the problem.

    It is not limited to the login page.

    The line causing the error in the template is :
    {% openid_login_url openid="https://www.google.com/accounts/o8/id" %}

    Exception returned is "KeyError" at line 17 of allauth/openid/templatetags/openid_tags.py :
    request = context['request']

    I can't find what is causing this.

    Thanks.

    Received error "can't compare offset-naive and offset-aware datetimes"

    Hi there,

    Awesome app, by the way.

    I received the error in the title after trying to authenticate a test email (perhaps I performed setup incorrectly somehow), but it was easily fixed by following the steps from this link: http://spottedsun.com/django-registration-activation-error-for-django-1-4/. I just applied the same principle to code around line 155 of the emailactivation/models.py file.

    Perhaps this was an annoying bug in my system, but it is fixed for now, unless I drastically messed up my own code.

    Best of luck!

    Email AND Username authentication

    I saw in the app_settings.py file that there is a EMAIL_AUTHENTICATION option that changes the way users sign in, using email instead of username.

    Is there a option the allow user sign in with both email AND username?

    Error on Social Connections Page

    The page loads fine at first. Then I add a google account connection and receive this error. The error goes away when the google connection is deleted. This error only shows up when twitter login is disabled. Any ideas?

    TemplateSyntaxError at /accounts/social/connections/
    Caught FieldDoesNotExist while rendering: SocialAccount has no field named 'twitteraccount'

    Is there a way to save the response from the social connection?

    I couldn't figure out if this was available or not. The response is being used to get the email and username during the create user process. Is there a way to get the raw response data available via a signal on login or something like this?

    I also see that it's being passed via the SocialAccount.sync() method. I'm not sure how to hook into this.

    [not django-allauth related, could be deleted] list index out of range on accounts/signup/

    I started using allauth in a dev enviroment, so, maybe is some config that I havent noted, but here it is.

    When I try to sigup a new user, it gave the full stack

    IndexError at /accounts/signup/

    list index out of range

    Environment:

    Request Method: POST
    Request URL: http://localhost:8000/accounts/signup/

    Django Version: 1.3.1
    Python Version: 2.7.2
    Installed Applications:
    ['django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.sites',
    'django.contrib.messages',
    'django.contrib.flatpages',
    'django.contrib.staticfiles',
    'django.contrib.admin',
    'bolsonline.trocados',
    'emailconfirmation',
    'uni_form',
    'allauth',
    'allauth.account',
    'allauth.socialaccount',
    'allauth.openid']
    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',
    'django.middleware.transaction.TransactionMiddleware',
    'django.contrib.flatpages.middleware.FlatpageFallbackMiddleware')

    Traceback:
    File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py" in get_response

    1.                     response = callback(request, _callback_args, *_callback_kwargs)
      
      File "/usr/local/lib/python2.7/dist-packages/django_allauth-0.2.0-py2.7.egg/allauth/account/views.py" in signup
    2.         return complete_signup(request, user, success_url)
      
      File "/usr/local/lib/python2.7/dist-packages/django_allauth-0.2.0-py2.7.egg/allauth/account/utils.py" in complete_signup
    3.     perform_login(request, user)
      
      File "/usr/local/lib/python2.7/dist-packages/django_allauth-0.2.0-py2.7.egg/allauth/account/utils.py" in perform_login
    4. login(request, user)
      
      File "/usr/local/lib/python2.7/dist-packages/django/contrib/auth/init.py" in login
    5. user_logged_in.send(sender=user.**class**, request=request, user=user)
      
      File "/usr/local/lib/python2.7/dist-packages/django/dispatch/dispatcher.py" in send
    6.         response = receiver(signal=self, sender=sender, **named)
      
      File "/home/cassio/dev/bolsonline/../bolsonline/trocados/init.py" in login
    7.     trocar_bolso(request, Bolso.por_usuario(user)[0].id)
      
      File "/usr/local/lib/python2.7/dist-packages/django/db/models/query.py" in getitem
    8.         return list(qs)[0]
      

    Exception Type: IndexError at /accounts/signup/
    Exception Value: list index out of range

    NoReverseMatch at /accounts/login/

    i am confused.

    when i use the django shell and run this function

    SocialApp.objects.get_current(FacebookProvider.id)

    it gives me an id

    i.e. Grand Plans of World Dominitation

    but i get this error

    NoReverseMatch at /accounts/login/
    Reverse for 'facebook_channel' with arguments '()' and keyword arguments '{}' not found.

    what could be wrong?

    Recommend Projects

    • React photo React

      A declarative, efficient, and flexible JavaScript library for building user interfaces.

    • Vue.js photo Vue.js

      🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

    • Typescript photo Typescript

      TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

    • TensorFlow photo TensorFlow

      An Open Source Machine Learning Framework for Everyone

    • Django photo Django

      The Web framework for perfectionists with deadlines.

    • D3 photo D3

      Bring data to life with SVG, Canvas and HTML. 📊📈🎉

    Recommend Topics

    • javascript

      JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

    • web

      Some thing interesting about web. New door for the world.

    • server

      A server is a program made to process requests and deliver data to clients.

    • Machine learning

      Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

    • Game

      Some thing interesting about game, make everyone happy.

    Recommend Org

    • Facebook photo Facebook

      We are working to build community through open source technology. NB: members must have two-factor auth.

    • Microsoft photo Microsoft

      Open source projects and samples from Microsoft.

    • Google photo Google

      Google ❤️ Open Source for everyone.

    • D3 photo D3

      Data-Driven Documents codes.