When I first started learning Django I found the docs
better-than-average, yet looking at code was the way for me to really
grasp certain concepts. Cheeserater (thanks Jacob!) was great to look
at a way to do voting, Cab (thanks James!) was great to look at how to
deal with Newforms, Lost-Theories (thanks Jeff!) was great to look at
the commenting system, and rossp.org's blog tutorials (thanks Ross!)
were a great starting place.
In order to hopefully help somebody out, I wanted to quickly create a
site with the sole intention of distributing the source code. Let me
take this time to introduce http://www.colddirt.com -- the sinful
aggregator.
Nothing is too complex, so if you've just started learning Django, feel
free to look through this code. Some of the the things I've touched on:
-Django's syndication framework (both simple and a little complex)
-Sitemap creation
-Generic views
-Newforms
-Searching stuff
-AJAX usage (one simple and one using JSON serialization)
-Tagcloud creation
-FreeComment
To supplement the code I wrote up a five part explanation (maybe I'll
add more later):
http://www.kelvinism.com/tech-blog/colddirt-information/
If you are just learning, maybe this can help. If you are a Django
guru, and see me breaking any best practices, please let me know!
Thanks Django Community,
Kelvin
Sincerely,
-Warren
just a few sugsession:
* use sqlite3 to have a simple & fast setup
* use CACHE_BACKEND = 'dummy:///' (again easier for the first steps)
* remove Google Analytics from the base.html Template :-))
I am still a django virgin and very frustrated there aren't more
*good & readable* sources for complete websites.
I will take a look at your sources now.
Thanks.
On 6 Jun., 05:14, Kelvin Nicholson <kel...@kelvinism.com> wrote:
> Dear all Djangoers:
>
> When I first started learning Django I found the docs
> better-than-average, yet looking at code was the way for me to really
> grasp certain concepts. Cheeserater (thanks Jacob!) was great to look
> at a way to do voting, Cab (thanks James!) was great to look at how to
> deal with Newforms, Lost-Theories (thanks Jeff!) was great to look at
> the commenting system, and rossp.org's blog tutorials (thanks Ross!)
> were a great starting place.
>
> In order to hopefully help somebody out, I wanted to quickly create a
> site with the sole intention of distributing the source code. Let me
> take this time to introducehttp://www.colddirt.com-- the sinful
Ahh, good idea.
> * use CACHE_BACKEND = 'dummy:///' (again easier for the first steps)
Another good idea!
> * remove Google Analytics from the base.html Template :-))
Busted. Thanks for parsing the code and pointing out the obvious!
> I will take a look at your sources now.
>
Sweet! I'm certainly not a Django guru, but if you have any questions
don't hesitate shooting me an email.
Cheers,
Kelvin