1. Sergii Gulenok
  2. django-publicauth

Commits

offline  committed 43a9a80

xdreceiver now use direct_to_template

  • Participants
  • Parent commits 23f2c74
  • Branches default

Comments (0)

Files changed (2)

File openauth/urls.py

View file
  • Ignore whitespace
 from django.conf.urls.defaults import *
+from django.views.generic.simple import direct_to_template
 
 from openauth import views
 
     url(r'^logout/$', views.logout, name='openauth-logout'),
     url(r'^reset-password/$', views.reset_password, name='openauth-reset-password'),
     url(r'^change-password/$', views.change_password, name='openauth-change-password'),
-    url(r'^xdreceiver/$', views.xdreceiver, name='openauth-facebook-xdreceiver'),
+    url(r'^xdreceiver/$', direct_to_template, {'template': 'openauth/xdreceiver.html'}, name='openauth-facebook-xdreceiver'),
 )

File openauth/views.py

View file
  • Ignore whitespace
 
     return {'form': form}
 
-
-@render_to("openauth/xdreceiver.html")
-def xdreceiver(request):
-    return {}