title: How to configure X-Frame-Options in Django to allow iframe embedding of one view?
body: <p>I'm trying to enable django to allow one specific view to be embedded on external sites, preferabilly without sites restrictions.</p>
  
  <p>In my <em>views.py</em> file, I have added the following code, where the view <em>futurebig</em> is the one I want to enable to be embedded:</p>
  
  <pre><code>from django.views.decorators.clickjacking import xframe_options_sameorigin
  ...
  @xframe_options_sameorigin
  def futurebig(request):
      ...
      return render_to_response('templates/iframe/future_clock_big.html', context_dict, context)
  </code></pre>
  
  <p>which doesn't help as I understand because it only enables embedding in the same server.</p>
  
  <p>How can I set the headers for that specific view to enable it to be embedded in any website?</p>
  
  <p>For the record, I'm just a frontend developer, the backend developer who developed the site is no longer working with me and refused to document his code, so, If anyone could help me and explain carefully where and what modifications I should do, I'll apreciatte it very much. </p>
  
  <p>Thanks.</p>
  
  <p>As far as I know, the Django version is 1.6 </p>