Author: adrian
Date: 2006-05-31 14:25:57 -0500 (Wed, 31 May 2006)
New Revision: 3032

Modified:
   djangoproject.com/django_website/apps/docs/parts/build_documentation.py
Log:
Fixed build_documentation to display the correct import statement

Modified: 
djangoproject.com/django_website/apps/docs/parts/build_documentation.py
===================================================================
--- djangoproject.com/django_website/apps/docs/parts/build_documentation.py     
2006-05-31 19:23:07 UTC (rev 3031)
+++ djangoproject.com/django_website/apps/docs/parts/build_documentation.py     
2006-05-31 19:25:57 UTC (rev 3032)
@@ -29,8 +29,8 @@
 
 <h2 id="sample-usage">Sample API usage</h2>
 <p>This sample code assumes the above model{{ models|pluralize }} {% if 
models|pluralize %}have{% else %}has{% endif %}
-been saved in a file <tt class="docutils literal"><span 
class="pre">examplemodel.py</span></tt>.
-<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 %}
+been saved in a file <tt class="docutils literal"><span 
class="pre">mysite/models.py</span></tt>.
+<pre class="literal-block">&gt;&gt;&gt; from mysite.models import {% for model 
in models %}{{ model.name }}{% if not forloop.last %}, {% endif %}{% endfor %}
 {{ api_usage }}</pre>
 </div>
 """


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates
-~----------~----~----~----~------~----~------~--~---

Reply via email to