Another Django Site with Source Code

8 views
Skip to first unread message

Kelvin Nicholson

unread,
Jun 5, 2007, 11:14:20 PM6/5/07
to django...@googlegroups.com
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 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


queezy

unread,
Jun 5, 2007, 10:14:19 PM6/5/07
to django...@googlegroups.com
Wow! Thanks Kelvin! That's awesome!!

Sincerely,

-Warren

Werner

unread,
Jun 6, 2007, 12:22:17 PM6/6/07
to Django users
Hello Kelvin,

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

Kelvin Nicholson

unread,
Jun 6, 2007, 9:08:02 PM6/6/07
to django...@googlegroups.com
On Wed, 2007-06-06 at 09:22 -0700, Werner wrote:
> Hello Kelvin,
>
> just a few sugsession:
>
> * use sqlite3 to have a simple & fast setup

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


hass

unread,
Jun 7, 2007, 12:06:22 PM6/7/07
to Django users
Thanks, looking at other code is always so helpful for me.

Reply all
Reply to author
Forward
0 new messages