Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jun 30th, 2012  |  syntax: None  |  size: 0.36 KB  |  hits: 15  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Sphinx documentation in Django
  2. {% extends "base.html" %}
  3. {% block content %}
  4. ...
  5.        
  6. {{ '{% extends "base.html" %}' }}
  7. {{ '{% block content %}' }}
  8. ...
  9.        
  10. def someView( request, topic ):
  11.     # use settings.SOME_DIRECTORY + path info to find the JSON file
  12.     with something as source:
  13.         doc= json.loads( source )
  14.     render_to_response( 'page.template', doc )