<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" > <channel><title>Comments on: A Detailed Django Tutorial: Blog Basics Part III</title> <atom:link href="http://brenelz.com/blog/a-detailed-django-tutorial-blog-basics-part-iii/feed/" rel="self" type="application/rss+xml" /><link>http://brenelz.com/blog/a-detailed-django-tutorial-blog-basics-part-iii/</link> <description>a winnipeg website design company.</description> <lastBuildDate>Thu, 09 Feb 2012 06:42:48 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" /> <item><title>By: Troy</title><link>http://brenelz.com/blog/a-detailed-django-tutorial-blog-basics-part-iii/comment-page-1/#comment-370827</link> <dc:creator>Troy</dc:creator> <pubDate>Fri, 21 Oct 2011 23:12:40 +0000</pubDate> <guid isPermaLink="false">http://www.brenelz.com/blog/?p=859#comment-370827</guid> <description>Sorry this comment form does not like me. The codes: </description> <content:encoded><![CDATA[<p>Sorry this comment form does not like me. The codes:</p> ]]></content:encoded> </item> <item><title>By: Troy</title><link>http://brenelz.com/blog/a-detailed-django-tutorial-blog-basics-part-iii/comment-page-1/#comment-370824</link> <dc:creator>Troy</dc:creator> <pubDate>Fri, 21 Oct 2011 23:11:16 +0000</pubDate> <guid isPermaLink="false">http://www.brenelz.com/blog/?p=859#comment-370824</guid> <description>Insert this snippet:Right before the Post button in your post_detail.html to reload the comment page instead of getting that crappy &quot;Your comment was posted&quot; page.</description> <content:encoded><![CDATA[<p>Insert this snippet:</p><p>Right before the Post button in your post_detail.html to reload the comment page instead of getting that crappy &#8220;Your comment was posted&#8221; page.</p> ]]></content:encoded> </item> <item><title>By: Robert</title><link>http://brenelz.com/blog/a-detailed-django-tutorial-blog-basics-part-iii/comment-page-1/#comment-222738</link> <dc:creator>Robert</dc:creator> <pubDate>Mon, 30 May 2011 19:45:11 +0000</pubDate> <guid isPermaLink="false">http://www.brenelz.com/blog/?p=859#comment-222738</guid> <description>In Django 1.3 it is needfull that you add in your settings.py at MIDDLEWARE_CLASSES this one: &#039;django.middleware.csrf.CsrfResponseMiddleware&#039;,</description> <content:encoded><![CDATA[<p>In Django 1.3 it is needfull that you add in your settings.py at MIDDLEWARE_CLASSES this one:<br /> &#8216;django.middleware.csrf.CsrfResponseMiddleware&#8217;,</p> ]]></content:encoded> </item> <item><title>By: Robert</title><link>http://brenelz.com/blog/a-detailed-django-tutorial-blog-basics-part-iii/comment-page-1/#comment-222714</link> <dc:creator>Robert</dc:creator> <pubDate>Mon, 30 May 2011 19:15:55 +0000</pubDate> <guid isPermaLink="false">http://www.brenelz.com/blog/?p=859#comment-222714</guid> <description>Hi Timothy, hopefully I can help you. Go into your templates directory and make a new directory which is called posts. After that move your post_list.html in to this directory. Also _posts.html. What the author meant in this tutorial is, that you have to put the stuff in a subdirectory called posts in your templates folder ;-). Kind regards</description> <content:encoded><![CDATA[<p>Hi Timothy, hopefully I can help you. Go into your templates directory and make a new directory which is called posts. After that move your post_list.html in to this directory. Also _posts.html.<br /> What the author meant in this tutorial is, that you have to put the stuff in a subdirectory called posts in your templates folder <img src='http://brenelz.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> .<br /> Kind regards</p> ]]></content:encoded> </item> <item><title>By: Timothy</title><link>http://brenelz.com/blog/a-detailed-django-tutorial-blog-basics-part-iii/comment-page-1/#comment-151869</link> <dc:creator>Timothy</dc:creator> <pubDate>Sat, 19 Mar 2011 00:22:57 +0000</pubDate> <guid isPermaLink="false">http://www.brenelz.com/blog/?p=859#comment-151869</guid> <description>I&#039;m having a problem at the point where I&#039;m writing the post_list.html file. You need to specify whether it goes in /posts/ or in /templates. In any event, I have put copies of it in both places, and I continue to get the following error:&quot;TemplateDoesNotExist at / posts/post_list.html&quot;</description> <content:encoded><![CDATA[<p>I&#8217;m having a problem at the point where I&#8217;m writing the post_list.html file. You need to specify whether it goes in /posts/ or in /templates. In any event, I have put copies of it in both places, and I continue to get the following error:</p><p>&#8220;TemplateDoesNotExist at /<br /> posts/post_list.html&#8221;</p> ]]></content:encoded> </item> <item><title>By: cppswengr</title><link>http://brenelz.com/blog/a-detailed-django-tutorial-blog-basics-part-iii/comment-page-1/#comment-151622</link> <dc:creator>cppswengr</dc:creator> <pubDate>Fri, 18 Mar 2011 19:16:27 +0000</pubDate> <guid isPermaLink="false">http://www.brenelz.com/blog/?p=859#comment-151622</guid> <description>LOL, I had the same getting certain characters to display. lt=less than symbol while gt=greater than symbol.&#039;^media/(?Pltpathgt.*)$&#039;</description> <content:encoded><![CDATA[<p>LOL, I had the same getting certain characters to display. lt=less than symbol while gt=greater than symbol.</p><p>&#8216;^media/(?Pltpathgt.*)$&#8217;</p> ]]></content:encoded> </item> <item><title>By: cppswengr</title><link>http://brenelz.com/blog/a-detailed-django-tutorial-blog-basics-part-iii/comment-page-1/#comment-151616</link> <dc:creator>cppswengr</dc:creator> <pubDate>Fri, 18 Mar 2011 19:10:21 +0000</pubDate> <guid isPermaLink="false">http://www.brenelz.com/blog/?p=859#comment-151616</guid> <description>Thanks to all who helped eliminate this error:(r&#039;^resources/(? .*)$&#039;, &#039;django.views.static.serve&#039;, {&#039;document_root&#039;: settings.MEDIA_ROOT})...AnAmigian&#039;s comment solved it for meurlpatterns += patterns(&#039;&#039;, (r&#039;^media/(?P.*)$&#039;,&#039;django.views.static.serve&#039;,{ &#039;document_root&#039;:settings.MEDIA_ROOT, }), )</description> <content:encoded><![CDATA[<p>Thanks to all who helped eliminate this error:</p><p>(r&#8217;^resources/(? .*)$&#8217;, &#8216;django.views.static.serve&#8217;, {&#8216;document_root&#8217;: settings.MEDIA_ROOT})</p><p>&#8230;</p><p>AnAmigian&#8217;s comment solved it for me</p><p> urlpatterns += patterns(&#8221;,<br /> (r&#8217;^media/(?P.*)$&#8217;,'django.views.static.serve&#8217;,{<br /> &#8216;document_root&#8217;:settings.MEDIA_ROOT,<br /> }),<br /> )</p> ]]></content:encoded> </item> <item><title>By: AnAmigian</title><link>http://brenelz.com/blog/a-detailed-django-tutorial-blog-basics-part-iii/comment-page-1/#comment-94507</link> <dc:creator>AnAmigian</dc:creator> <pubDate>Fri, 14 Jan 2011 11:53:57 +0000</pubDate> <guid isPermaLink="false">http://www.brenelz.com/blog/?p=859#comment-94507</guid> <description>Ups, between /?P and .*)$b is &lt;b&gt;&amp;lt&lt;/b&gt;path&lt;b&gt;&amp;gt&lt;/b&gt; missing</description> <content:encoded><![CDATA[<p>Ups, between /?P and .*)$b is <b>&amp;lt</b>path<b>&amp;gt</b> missing</p> ]]></content:encoded> </item> <item><title>By: AnAmigian</title><link>http://brenelz.com/blog/a-detailed-django-tutorial-blog-basics-part-iii/comment-page-1/#comment-94506</link> <dc:creator>AnAmigian</dc:creator> <pubDate>Fri, 14 Jan 2011 11:46:35 +0000</pubDate> <guid isPermaLink="false">http://www.brenelz.com/blog/?p=859#comment-94506</guid> <description>urlpatterns += patterns(&#039;&#039;, (r&#039;^resources/(?P.*)$&#039;, &#039;django.views.static.serve&#039;, {&#039;document_root&#039;: settings.MEDIA_ROOT}))</description> <content:encoded><![CDATA[<p>urlpatterns += patterns(&#8221;, (r&#8217;^resources/(?P.*)$&#8217;, &#8216;django.views.static.serve&#8217;, {&#8216;document_root&#8217;: settings.MEDIA_ROOT}))</p> ]]></content:encoded> </item> <item><title>By: Doug</title><link>http://brenelz.com/blog/a-detailed-django-tutorial-blog-basics-part-iii/comment-page-1/#comment-88179</link> <dc:creator>Doug</dc:creator> <pubDate>Tue, 04 Jan 2011 00:12:07 +0000</pubDate> <guid isPermaLink="false">http://www.brenelz.com/blog/?p=859#comment-88179</guid> <description>Thanks for this post.  I started up a new Django project this week and was determined to make use of generic views wherever possible because somewhere along the way I had picked up the bad habit of writing custom views for everything ... silly huh?  Needless to say, I spared myself from having to write a lot of monotonous CRUD code.  Thanks again!</description> <content:encoded><![CDATA[<p>Thanks for this post.  I started up a new Django project this week and was determined to make use of generic views wherever possible because somewhere along the way I had picked up the bad habit of writing custom views for everything &#8230; silly huh?  Needless to say, I spared myself from having to write a lot of monotonous CRUD code.  Thanks again!</p> ]]></content:encoded> </item> <item><title>By: Nolan</title><link>http://brenelz.com/blog/a-detailed-django-tutorial-blog-basics-part-iii/comment-page-1/#comment-12025</link> <dc:creator>Nolan</dc:creator> <pubDate>Tue, 06 Apr 2010 01:13:04 +0000</pubDate> <guid isPermaLink="false">http://www.brenelz.com/blog/?p=859#comment-12025</guid> <description>I would like more information regarding from django.conf import settings if settings.DEBUG: urlpatterns += patterns(”, (r’^rsrc/(? .*)$’, ‘django.views.static.serve’, {’document_root’: settings.MEDIA_ROOT}) )You cannot just append this to the bottom of your file. could someone give the corrected one? It throws more than one error regarding these lines.</description> <content:encoded><![CDATA[<p>I would like more information regarding from django.conf import settings<br /> if settings.DEBUG:<br /> urlpatterns += patterns(”,<br /> (r’^rsrc/(? .*)$’, ‘django.views.static.serve’, {</p><p>’document_root’: settings.MEDIA_ROOT})<br /> )</p><p>You cannot just append this to the bottom of your file. could someone give the corrected one? It throws more than one error regarding these lines.</p> ]]></content:encoded> </item> <item><title>By: Nick</title><link>http://brenelz.com/blog/a-detailed-django-tutorial-blog-basics-part-iii/comment-page-1/#comment-2873</link> <dc:creator>Nick</dc:creator> <pubDate>Wed, 25 Nov 2009 18:10:48 +0000</pubDate> <guid isPermaLink="false">http://www.brenelz.com/blog/?p=859#comment-2873</guid> <description>I&#039;m getting the same problem as darius. The correct expression is: resources/(?P&lt;path&gt;.*)$It looks as though the browser is hiding some of it as it thinks it&#039;s html mark up.I found the solution here: http://docs.djangoproject.com/en/dev/howto/static-files/Note: Excuse the garbled message if that didn&#039;t work but I was trying to put path within triangular brackets.</description> <content:encoded><![CDATA[<p>I&#8217;m getting the same problem as darius.<br /> The correct expression is: resources/(?P&lt;path&gt;.*)$</p><p>It looks as though the browser is hiding some of it as it thinks it&#8217;s html mark up.</p><p>I found the solution here:<br /> <a href="http://docs.djangoproject.com/en/dev/howto/static-files/" rel="nofollow">http://docs.djangoproject.com/en/dev/howto/static-files/</a></p><p>Note: Excuse the garbled message if that didn&#8217;t work but I was trying to put path within triangular brackets.</p> ]]></content:encoded> </item> <item><title>By: darius</title><link>http://brenelz.com/blog/a-detailed-django-tutorial-blog-basics-part-iii/comment-page-1/#comment-1063</link> <dc:creator>darius</dc:creator> <pubDate>Mon, 28 Sep 2009 07:13:21 +0000</pubDate> <guid isPermaLink="false">http://www.brenelz.com/blog/?p=859#comment-1063</guid> <description>works great until:&lt;code&gt; (r&#039;^resources/(? .*)$&#039;, &#039;django.views.static.serve&#039;, {&#039;document_root&#039;: settings.MEDIA_ROOT})...&gt;&gt;&gt; re.compile(&#039;^resources/(?.*)$&#039;) error: unexpected end of pattern &lt;/code&gt;i placed the &#039;?&#039; after: as in (.*?)</description> <content:encoded><![CDATA[<p>works great until:</p><p><code><br /> (r'^resources/(? .*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT})</p><p>...</p><p>&gt;&gt;&gt; re.compile('^resources/(?.*)$')<br /> error: unexpected end of pattern<br /> </code></p><p>i placed the &#8216;?&#8217; after: as in (.*?)</p> ]]></content:encoded> </item> <item><title>By: compute32</title><link>http://brenelz.com/blog/a-detailed-django-tutorial-blog-basics-part-iii/comment-page-1/#comment-1017</link> <dc:creator>compute32</dc:creator> <pubDate>Sat, 02 May 2009 00:57:47 +0000</pubDate> <guid isPermaLink="false">http://www.brenelz.com/blog/?p=859#comment-1017</guid> <description>Hi, could you have a tutorial explaining how to pass a variable from views.py to a html file?I am trying to make a ads rotation system. I am a php programmer and new to django and kinda new to python.I would like to learn how I can get the ad graphic url from the database of google apps engine to the html file where the image tag is.So their graphic ad shows. I am having trouble with this.</description> <content:encoded><![CDATA[<p>Hi, could you have a tutorial explaining how to pass a variable from views.py to a html file?</p><p>I am trying to make a ads rotation system. I am a php programmer and new to django and kinda new to python.</p><p>I would like to learn how I can get the ad graphic url from the database of google apps engine to the html file where the image tag is.</p><p>So their graphic ad shows. I am having trouble with this.</p> ]]></content:encoded> </item> <item><title>By: qwertyt</title><link>http://brenelz.com/blog/a-detailed-django-tutorial-blog-basics-part-iii/comment-page-1/#comment-1016</link> <dc:creator>qwertyt</dc:creator> <pubDate>Mon, 06 Apr 2009 10:29:49 +0000</pubDate> <guid isPermaLink="false">http://www.brenelz.com/blog/?p=859#comment-1016</guid> <description>Hi Great tutorial!! A sugestion... -can you add a little tutorial about forms in django? -another tutorial, integration javascript(jquery) with django.thanks for your work!</description> <content:encoded><![CDATA[<p>Hi<br /> Great tutorial!!<br /> A sugestion&#8230;<br /> -can you add a little tutorial about forms in django?<br /> -another tutorial, integration javascript(jquery) with django.</p><p>thanks for your work!</p> ]]></content:encoded> </item> <item><title>By: Django Blog Tutorial &#124; Blog of Jeff</title><link>http://brenelz.com/blog/a-detailed-django-tutorial-blog-basics-part-iii/comment-page-1/#comment-1015</link> <dc:creator>Django Blog Tutorial &#124; Blog of Jeff</dc:creator> <pubDate>Fri, 03 Apr 2009 07:50:53 +0000</pubDate> <guid isPermaLink="false">http://www.brenelz.com/blog/?p=859#comment-1015</guid> <description>[...] Part 3 [...]</description> <content:encoded><![CDATA[<p>[...] Part 3 [...]</p> ]]></content:encoded> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced (User agent is rejected)
Database Caching 25/47 queries in 0.017 seconds using disk: basic
Object Caching 719/720 objects using disk: basic

Served from: brenelz.com @ 2012-02-10 05:40:15 -->
