Django Tutorial - Video 10 - Interactive Facebook Tabs part 1

This tutorial covers registering a Facebook Application and setting up Django to host a custom Facebook Tab.


facebooktab/views.py

from django.shortcuts import render_to_response
from django.template import RequestContext
from django.views.decorators.csrf import csrf_exempt

@csrf_exempt
def BeerGifter(request):
        return render_to_response('facebooktab/beergifter.html')
		

templates/facebooktab/beergifter.html

<html>
<head>
</head>
<body>
<p>TESTING FACEBOOK BEER GIFTER TAB</p>
</body>
</html>
		

Add URL hooks to urls.py

    (r'^facebooktab/beergifter/$', 'facebooktab.views.BeerGifter'),