Cleaning up 2.7 compatibility and more work on installer.
diff --git a/samples/django_sample/buzz/views.py b/samples/django_sample/buzz/views.py
index c942aaf..d89af6d 100644
--- a/samples/django_sample/buzz/views.py
+++ b/samples/django_sample/buzz/views.py
@@ -24,8 +24,8 @@
credential = storage.get()
if credential is None or credential.invalid == True:
flow = OAuth2WebServerFlow(
- client_id='837647042410.apps.googleusercontent.com',
- client_secret='+SWwMCL9d8gWtzPRa1lXw5R8',
+ client_id='887851474342.apps.googleusercontent.com',
+ client_secret='6V9MHBUQqOQtxI7uXPIEnV8e',
scope='https://www.googleapis.com/auth/buzz',
user_agent='buzz-django-sample/1.0',
)
diff --git a/samples/django_sample/settings.py b/samples/django_sample/settings.py
index 565d2e5..d0d7c7e 100644
--- a/samples/django_sample/settings.py
+++ b/samples/django_sample/settings.py
@@ -62,6 +62,7 @@
'django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
+ 'django.middleware.csrf.CsrfViewMiddleware',
)
ROOT_URLCONF = 'django_sample.urls'
diff --git a/samples/django_sample/templates/buzz/login.html b/samples/django_sample/templates/buzz/login.html
index 567bf68..28a64f1 100644
--- a/samples/django_sample/templates/buzz/login.html
+++ b/samples/django_sample/templates/buzz/login.html
@@ -4,7 +4,7 @@
<p>Your username and password didn't match. Please try again.</p>
{% endif %}
-<form method="post" action="{% url django.contrib.auth.views.login %}">
+<form method="post" action="{% url django.contrib.auth.views.login %}">{% csrf_token %}
<table>
<tr>
<td>{{ form.username.label_tag }}</td>