Guest User

Untitled

a guest
Jun 30th, 2012
34
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  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 )
Advertisement
Add Comment
Please, Sign In to add comment