<?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: Improving Django: Generic views for RESTful web services</title>
	<atom:link href="http://www.aiplayground.org/artikel/improving-django/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.aiplayground.org/artikel/improving-django/</link>
	<description>Thoughts on artificial intelligence, cognitive science, academia, and life in general.</description>
	<lastBuildDate>Fri, 26 Feb 2010 13:06:42 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Tabitha Jennings</title>
		<link>http://www.aiplayground.org/artikel/improving-django/comment-page-1/#comment-28047</link>
		<dc:creator>Tabitha Jennings</dc:creator>
		<pubDate>Sat, 10 Jan 2009 19:51:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.aiplayground.org/artikel/improving-django/#comment-28047</guid>
		<description>hi
h61s8ith9f4z95r0
good luck</description>
		<content:encoded><![CDATA[<p>hi<br />
h61s8ith9f4z95r0<br />
good luck</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eugene Jackson</title>
		<link>http://www.aiplayground.org/artikel/improving-django/comment-page-1/#comment-28045</link>
		<dc:creator>Eugene Jackson</dc:creator>
		<pubDate>Fri, 09 Jan 2009 06:35:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.aiplayground.org/artikel/improving-django/#comment-28045</guid>
		<description>hi
h61s8ith9f4z95r0
good luck</description>
		<content:encoded><![CDATA[<p>hi<br />
h61s8ith9f4z95r0<br />
good luck</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: company life insurance valley stonebridge</title>
		<link>http://www.aiplayground.org/artikel/improving-django/comment-page-1/#comment-28044</link>
		<dc:creator>company life insurance valley stonebridge</dc:creator>
		<pubDate>Thu, 08 Jan 2009 22:37:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.aiplayground.org/artikel/improving-django/#comment-28044</guid>
		<description>company stonebridge plano life insurance &lt;a href=&quot;http://www.twine.com/user/cedrick4600&quot; rel=&quot;nofollow&quot;&gt;insurance life plano company stonebridge&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>company stonebridge plano life insurance <a href="http://www.twine.com/user/cedrick4600" rel="nofollow">insurance life plano company stonebridge</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bookmarks about App</title>
		<link>http://www.aiplayground.org/artikel/improving-django/comment-page-1/#comment-28004</link>
		<dc:creator>Bookmarks about App</dc:creator>
		<pubDate>Sat, 04 Oct 2008 08:15:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.aiplayground.org/artikel/improving-django/#comment-28004</guid>
		<description>[...] - bookmarked by 1 members originally found by Roncip on 2008-09-16  Improving Django: Generic views for RESTful web services  http://www.aiplayground.org/artikel/improving-django/ - bookmarked by 5 members originally found [...]</description>
		<content:encoded><![CDATA[<p>[...] &#8211; bookmarked by 1 members originally found by Roncip on 2008-09-16  Improving Django: Generic views for RESTful web services  <a href="http://www.aiplayground.org/artikel/improving-django/" rel="nofollow">http://www.aiplayground.org/artikel/improving-django/</a> &#8211; bookmarked by 5 members originally found [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Thorben</title>
		<link>http://www.aiplayground.org/artikel/improving-django/comment-page-1/#comment-18742</link>
		<dc:creator>Thorben</dc:creator>
		<pubDate>Thu, 22 Nov 2007 01:24:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.aiplayground.org/artikel/improving-django/#comment-18742</guid>
		<description>Vielleicht solltest du doch &quot;Captchas&quot; einbauen :-)</description>
		<content:encoded><![CDATA[<p>Vielleicht solltest du doch &#8220;Captchas&#8221; einbauen :-)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: stone mind &#187; Another django-restful-model-views Update.</title>
		<link>http://www.aiplayground.org/artikel/improving-django/comment-page-1/#comment-5670</link>
		<dc:creator>stone mind &#187; Another django-restful-model-views Update.</dc:creator>
		<pubDate>Fri, 27 Apr 2007 13:34:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.aiplayground.org/artikel/improving-django/#comment-5670</guid>
		<description>[...] I mentioned a few weeks ago, Andreas Stuhlmueller has proposed a general REST API for Django, and as his ideas and mine seemed very compatible, we began talking about collaborating on a joint [...]</description>
		<content:encoded><![CDATA[<p>[...] I mentioned a few weeks ago, Andreas Stuhlmueller has proposed a general REST API for Django, and as his ideas and mine seemed very compatible, we began talking about collaborating on a joint [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: adam smith</title>
		<link>http://www.aiplayground.org/artikel/improving-django/comment-page-1/#comment-4192</link>
		<dc:creator>adam smith</dc:creator>
		<pubDate>Tue, 17 Apr 2007 14:12:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.aiplayground.org/artikel/improving-django/#comment-4192</guid>
		<description>Hello again and sorry for the late response, I&#039;ve been busier than usual with freelance work, and I just got around to checking your site again.

I&#039;m glad you&#039;re open to collaborating! I think together we will come up with very robust solution. Have you given thought as to how you want to proceed?

(Incidentally, I think your English is excellent--better than many native speakers I know... but don&#039;t hesitate to let me know if I am ever unclear.)

Here are a few preliminary thoughts I have. Your blog post prompted me to make a few quick updates to my existing code to factor out the model specific approach more, so that its now ready (I think) to allow developers to define resources that are not directly tied to models. If you like the basic approach I took, we could use this as a starting point, just let me know if there are areas that you would like clarified, or if there are areas you think should be cleaned up more. I also believe that nothing is set in stone and would be prepared to start from scratch also if that makes the most sense.

Either way, we should probably start a new project site and deprecate the one I started. The Google project hosting seems to be easier to use than Source Forge, but I suspect that you can&#039;t just rename an existing project. Do you have a preference? 

My knowledge of Ruby on Rails comes purely as a spectator--I haven&#039;t used it yet myself, although that might happen as part of ongoing research into the ideas they&#039;ve come up with. And as I said, because I am also new to the REST philosophy, and still very new to Django, and because you seem to be more experienced with Django at least, I would be happy to follow your lead on this project. Besides, my best ideas may already be in the existing code, while I think you have a strong vision for how to take it to the next level and beyond.

Also, I have a significant project in the works for which I am planning to use Django, and I could use the developing REST API underneath so we would have that as an extra reality check.

Let me know your thoughts on this. I think I am ready to proceed, even if its slowly at first. I&#039;m really excited about the possibilities here.

Feel free to contact me directly at my email address below.

adam smith
ajs17@cornell.edu</description>
		<content:encoded><![CDATA[<p>Hello again and sorry for the late response, I&#8217;ve been busier than usual with freelance work, and I just got around to checking your site again.</p>
<p>I&#8217;m glad you&#8217;re open to collaborating! I think together we will come up with very robust solution. Have you given thought as to how you want to proceed?</p>
<p>(Incidentally, I think your English is excellent&#8211;better than many native speakers I know&#8230; but don&#8217;t hesitate to let me know if I am ever unclear.)</p>
<p>Here are a few preliminary thoughts I have. Your blog post prompted me to make a few quick updates to my existing code to factor out the model specific approach more, so that its now ready (I think) to allow developers to define resources that are not directly tied to models. If you like the basic approach I took, we could use this as a starting point, just let me know if there are areas that you would like clarified, or if there are areas you think should be cleaned up more. I also believe that nothing is set in stone and would be prepared to start from scratch also if that makes the most sense.</p>
<p>Either way, we should probably start a new project site and deprecate the one I started. The Google project hosting seems to be easier to use than Source Forge, but I suspect that you can&#8217;t just rename an existing project. Do you have a preference? </p>
<p>My knowledge of Ruby on Rails comes purely as a spectator&#8211;I haven&#8217;t used it yet myself, although that might happen as part of ongoing research into the ideas they&#8217;ve come up with. And as I said, because I am also new to the REST philosophy, and still very new to Django, and because you seem to be more experienced with Django at least, I would be happy to follow your lead on this project. Besides, my best ideas may already be in the existing code, while I think you have a strong vision for how to take it to the next level and beyond.</p>
<p>Also, I have a significant project in the works for which I am planning to use Django, and I could use the developing REST API underneath so we would have that as an extra reality check.</p>
<p>Let me know your thoughts on this. I think I am ready to proceed, even if its slowly at first. I&#8217;m really excited about the possibilities here.</p>
<p>Feel free to contact me directly at my email address below.</p>
<p>adam smith<br />
<a href="mailto:ajs17@cornell.edu">ajs17@cornell.edu</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andreas</title>
		<link>http://www.aiplayground.org/artikel/improving-django/comment-page-1/#comment-3303</link>
		<dc:creator>Andreas</dc:creator>
		<pubDate>Tue, 10 Apr 2007 08:35:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.aiplayground.org/artikel/improving-django/#comment-3303</guid>
		<description>Thanks for your comment!

If my ideas sound similar to your current thinking that&#039;s because I learned a lot reading your blog posts on REST and Django.

&lt;blockquote&gt;
In particular, I think that the urlpatterns are pivotal to making REST work elegantly in Django; because the regular expression syntax is so dense and because there may be so many RESTful urls in an application, this seems like a key place to ease a developer’s burden
&lt;/blockquote&gt;

Yes, we need to think about URL refactoring ideas such as &lt;a href=&quot;http://hagen.ac.labf.usb.ve/nicolas/gsoc/url-objects/&quot; rel=&quot;nofollow&quot;&gt;Nicolas Lara&#039;s&lt;/a&gt; before implementing the REST/API proposal. On the other hand, RegEx URL patterns are one of the things I really like about Django. We might end up providing shortcuts for the most common REST URL patterns while leaving the basic URL functionality unchanged.

&lt;blockquote&gt;
I had only started thinking about how to configure less model-centric resources, to which you seem to have well formed ideas.
&lt;/blockquote&gt;

I want to point out that, although I describe one specific approach that connects models, urls and APIs (the Resource/ModelResource class approach), nothing is set in stone yet. There are probably many ideas I haven&#039;t even considered and once we start writing code, new ideas will inevitably crop up.

I would definitely like to work with you and I have mentioned this in a comment on the SoC website. Collaboration makes a lot of sense: You seem to have spent more time thinking about REST in general, you are a native English speaker (I would not want to read documentation written by myself) and you know things about web development that I don&#039;t (my knowledge of Ruby on Rails is quite shallow).</description>
		<content:encoded><![CDATA[<p>Thanks for your comment!</p>
<p>If my ideas sound similar to your current thinking that&#8217;s because I learned a lot reading your blog posts on REST and Django.</p>
<blockquote><p>
In particular, I think that the urlpatterns are pivotal to making REST work elegantly in Django; because the regular expression syntax is so dense and because there may be so many RESTful urls in an application, this seems like a key place to ease a developer’s burden
</p></blockquote>
<p>Yes, we need to think about URL refactoring ideas such as <a href="http://hagen.ac.labf.usb.ve/nicolas/gsoc/url-objects/" rel="nofollow">Nicolas Lara&#8217;s</a> before implementing the REST/API proposal. On the other hand, RegEx URL patterns are one of the things I really like about Django. We might end up providing shortcuts for the most common REST URL patterns while leaving the basic URL functionality unchanged.</p>
<blockquote><p>
I had only started thinking about how to configure less model-centric resources, to which you seem to have well formed ideas.
</p></blockquote>
<p>I want to point out that, although I describe one specific approach that connects models, urls and APIs (the Resource/ModelResource class approach), nothing is set in stone yet. There are probably many ideas I haven&#8217;t even considered and once we start writing code, new ideas will inevitably crop up.</p>
<p>I would definitely like to work with you and I have mentioned this in a comment on the SoC website. Collaboration makes a lot of sense: You seem to have spent more time thinking about REST in general, you are a native English speaker (I would not want to read documentation written by myself) and you know things about web development that I don&#8217;t (my knowledge of Ruby on Rails is quite shallow).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: stone mind &#187; django-restful-model-views contribution update</title>
		<link>http://www.aiplayground.org/artikel/improving-django/comment-page-1/#comment-2891</link>
		<dc:creator>stone mind &#187; django-restful-model-views contribution update</dc:creator>
		<pubDate>Fri, 06 Apr 2007 16:45:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.aiplayground.org/artikel/improving-django/#comment-2891</guid>
		<description>[...] also feel obliged to point to a blog post that I suspect many people may not have seen: Improving Django: Generic views for RESTful web services. The author&#8217;s proposal is very close to what I proposed in my last blog post on the subject, [...]</description>
		<content:encoded><![CDATA[<p>[...] also feel obliged to point to a blog post that I suspect many people may not have seen: Improving Django: Generic views for RESTful web services. The author&#8217;s proposal is very close to what I proposed in my last blog post on the subject, [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: adam smith</title>
		<link>http://www.aiplayground.org/artikel/improving-django/comment-page-1/#comment-2750</link>
		<dc:creator>adam smith</dc:creator>
		<pubDate>Thu, 05 Apr 2007 16:57:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.aiplayground.org/artikel/improving-django/#comment-2750</guid>
		<description>Andreas,

This is a really nice overview and proposal--I wish you had written it a few months ago! I didn&#039;t know about many of the existing attempts to do REST more easily in Django. 

Your ideas sound very close to my current thinking--well, actually, I think you are many stages beyond my thinking at this point. Although I started out just trying to leverage the existing model/generic views code in Django, I have more recently come around to the idea of a more general REST interface that the model/generic view approach would implement, and I had only started thinking about how to configure less model-centric resources, to which you seem to have well formed ideas. I was also trying to think about how to respond in different formats, for which again, you seem to have a pretty well developed ideas for how to do this.

I have been using the Ruby on Rails approach as a source of ideas for evolving my own code, as it seems to be a pretty straightforward and relatively mature implementation. And there might be opportunities for sharing knowledge between the two communities. Otherwise, my main concerns have been using a test driven approach to coding it and trying to figure out how to make it as easy as possible for developers to implement the approach. (That was the other nice thing about focusing on models and generic views, much of it could be introspected automatically.)

For example, I think it would be great to see code like your poll_api example inside a Python module that follows a name/location convention like urls.py and other Django modules, then programmatically build the urlpatterns from that (or at least, have that as an option that can be overridden for more complex implementations) in a way that injects as little code as possible into urls.py and elsewhere so that the code stays clean and people can start using it productively without a steep learning curve or drastically changing how they use Django already. In particular, I think that the urlpatterns are pivotal to making REST work elegantly in Django; because the regular expression syntax is so dense and because there may be so many RESTful urls in an application, this seems like a key place to ease a developer&#039;s burden, by finding a way to generate these automatically from other configuration settings or conventions.

So, as I think my approach is very compatible with what you are proposing, would you like to work together to develop this into a full fledged Django contribution? As your ideas are significantly ahead of mine, and you seem to have significantly more Django experience than I, I would be glad to have you be the project lead. Or, if you want to work on your own implementation alone, but plan to produce working code in the near future, I could also use the time I would have spent developing my code and spend it testing what you produce, filing bug reports and suggestions, generating documentation, etc. For me, the important thing is to learn Django in more depth and begin building RESTful applications, and I&#039;d like to put my energy behind the best approach, even if that turns out not to be mine. I also want to give back to the community in the way that is most appropriate for my level of knowledge and experience.

If you are so inclined, my blog posts, which I link to from my project site, chronicle the process I have gone through so far to develop the code. My last blog post on the subject from a few weeks ago goes into many similar ideas to what you have in your proposal, and the django restful-model-views site itself was updated to reflect those ideas. The code itself is strong in places--its pretty fully unit tested, and some aspects of it are well thought out and well implemented I think, and could be a good starting point for developing the REST API you have envisioned. At the very least, it might be food for thought, such as the approach I took to organizing the view code for example.

If you are interested in working, please feel free to contact me directly.

adam smith
asmith@agile-software.com
http://code.google.com/p/django-restful-model-views/</description>
		<content:encoded><![CDATA[<p>Andreas,</p>
<p>This is a really nice overview and proposal&#8211;I wish you had written it a few months ago! I didn&#8217;t know about many of the existing attempts to do REST more easily in Django. </p>
<p>Your ideas sound very close to my current thinking&#8211;well, actually, I think you are many stages beyond my thinking at this point. Although I started out just trying to leverage the existing model/generic views code in Django, I have more recently come around to the idea of a more general REST interface that the model/generic view approach would implement, and I had only started thinking about how to configure less model-centric resources, to which you seem to have well formed ideas. I was also trying to think about how to respond in different formats, for which again, you seem to have a pretty well developed ideas for how to do this.</p>
<p>I have been using the Ruby on Rails approach as a source of ideas for evolving my own code, as it seems to be a pretty straightforward and relatively mature implementation. And there might be opportunities for sharing knowledge between the two communities. Otherwise, my main concerns have been using a test driven approach to coding it and trying to figure out how to make it as easy as possible for developers to implement the approach. (That was the other nice thing about focusing on models and generic views, much of it could be introspected automatically.)</p>
<p>For example, I think it would be great to see code like your poll_api example inside a Python module that follows a name/location convention like urls.py and other Django modules, then programmatically build the urlpatterns from that (or at least, have that as an option that can be overridden for more complex implementations) in a way that injects as little code as possible into urls.py and elsewhere so that the code stays clean and people can start using it productively without a steep learning curve or drastically changing how they use Django already. In particular, I think that the urlpatterns are pivotal to making REST work elegantly in Django; because the regular expression syntax is so dense and because there may be so many RESTful urls in an application, this seems like a key place to ease a developer&#8217;s burden, by finding a way to generate these automatically from other configuration settings or conventions.</p>
<p>So, as I think my approach is very compatible with what you are proposing, would you like to work together to develop this into a full fledged Django contribution? As your ideas are significantly ahead of mine, and you seem to have significantly more Django experience than I, I would be glad to have you be the project lead. Or, if you want to work on your own implementation alone, but plan to produce working code in the near future, I could also use the time I would have spent developing my code and spend it testing what you produce, filing bug reports and suggestions, generating documentation, etc. For me, the important thing is to learn Django in more depth and begin building RESTful applications, and I&#8217;d like to put my energy behind the best approach, even if that turns out not to be mine. I also want to give back to the community in the way that is most appropriate for my level of knowledge and experience.</p>
<p>If you are so inclined, my blog posts, which I link to from my project site, chronicle the process I have gone through so far to develop the code. My last blog post on the subject from a few weeks ago goes into many similar ideas to what you have in your proposal, and the django restful-model-views site itself was updated to reflect those ideas. The code itself is strong in places&#8211;its pretty fully unit tested, and some aspects of it are well thought out and well implemented I think, and could be a good starting point for developing the REST API you have envisioned. At the very least, it might be food for thought, such as the approach I took to organizing the view code for example.</p>
<p>If you are interested in working, please feel free to contact me directly.</p>
<p>adam smith<br />
<a href="mailto:asmith@agile-software.com">asmith@agile-software.com</a><br />
<a href="http://code.google.com/p/django-restful-model-views/" rel="nofollow">http://code.google.com/p/django-restful-model-views/</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>
