from django.shortcuts import get_object_or_404, render
from django.http import HttpResponseRedirect, HttpResponse, Http404
from django.core.urlresolvers import reverse
from django.contrib.auth.decorators import login_required

from dwitter.models import Dweet

def fullscreen_dweet(request, dweet_id):
  dweet = get_object_or_404(Dweet, id=dweet_id) 

  context = {'dweet': dweet
            }
  return render(request, 'dweet/dweet-id.html', context );

from django.shortcuts import get_object_or_404, render
from django.http import HttpResponseRedirect, HttpResponse, Http404
from django.core.urlresolvers import reverse
from django.contrib.auth.decorators import login_required

from dwitter.models import Dweet
from django.views.decorators.clickjacking import xframe_options_exempt


@xframe_options_exempt
def fullscreen_dweet(request, dweet_id):
  dweet = get_object_or_404(Dweet, id=dweet_id) 

  context = {'dweet': dweet
            }
  return render(request, 'dweet/dweet-id.html', context );

Disable clickjacking protection on demos to display them in iframes
Disable clickjacking protection on demos to display them in iframes
