Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed build_documentation to display the correct import statement

git-svn-id: http://code.djangoproject.com/svn/djangoproject.com@3032 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit b99d74f71030bc67618718123fadd729413d6a17 1 parent 746ab9e
authored May 31, 2006
4  django_website/apps/docs/parts/build_documentation.py
@@ -29,8 +29,8 @@
29 29
 
30 30
 <h2 id="sample-usage">Sample API usage</h2>
31 31
 <p>This sample code assumes the above model{{ models|pluralize }} {% if models|pluralize %}have{% else %}has{% endif %}
32  
-been saved in a file <tt class="docutils literal"><span class="pre">examplemodel.py</span></tt>.
33  
-<pre class="literal-block">&gt;&gt;&gt; from django.models.examplemodel import {% for model in models %}{{ model.module_name }}{% if not forloop.last %}, {% endif %}{% endfor %}
  32
+been saved in a file <tt class="docutils literal"><span class="pre">mysite/models.py</span></tt>.
  33
+<pre class="literal-block">&gt;&gt;&gt; from mysite.models import {% for model in models %}{{ model.name }}{% if not forloop.last %}, {% endif %}{% endfor %}
34 34
 {{ api_usage }}</pre>
35 35
 </div>
36 36
 """

0 notes on commit b99d74f

Please sign in to comment.
Something went wrong with that request. Please try again.