djangosnippets.org: Latest snippets posted by pmdarrowhttps://djangosnippets.org/users/pmdarrow/2012-12-04T09:27:39.814163-06:00pmdarrowUse django-social-auth & Google Accounts for admin login
2012-12-04T09:27:39.814163-06:00pmdarrowhttps://djangosnippets.org/snippets/2856/<ol>
<li>Create an app and place this in <code>admin.py</code>. </li>
<li>Add <code>url(r'^login/$', 'social_auth.views.auth', {'backend': 'google'}, name='login')</code> to your <code>urls.py</code>.</li>
<li>Add the app to your <code>INSTALLED_APPS</code> after <code>django.contrib.admin</code>. </li>
<li>Set <code>USE_SOCIAL_AUTH_AS_ADMIN_LOGIN = True</code> in your <code>settings.py</code>.</li>
<li>...</li>
<li>Profit.</li>
</ol>
Freely redistributable