splee.blog :: 2006 :: October

October 2006

SimpleBlog Part 3 - many-to-many relationships

Welcome to part 3 of the SimpleBlog series, where we shall be looking at SQLAlchemy’s many-to-many relationships.

Since the end of part 2 I have done some work on the “admin” side of things with a way to create posts and comments via a web interface rather than tg-admin shell. While I’m sure that asking your visitors to log in via SSH and use the shell would have gone down well, I think that this way is a little easier. :)

You can download the code from here. Continue Reading »

SimpleBlog
TurboGears

Comments (22)

Permalink

Web2.0

Web Two Point Ohhhh

My thoughts exactly.

Comedy
IT
Web Dev

Comments Off

Permalink

Stickum - A TurboGears based Pastebin

Recently, pastebin.com has been having performance issues and I’ve been struggling to find an alternative that does syntax highlighting in enough languages to satisfy my needs. I tend to sit in #turbogears a lot and help people new to TurboGears when I can and a pastebin is invaluable in that situation.

From this need, Stickum was born. It’s a very simple TurboGears application that accepts pastes and… well, pastes them, and it does syntax highlighting for a variety of languages so it’s not just for Pythonistas.

Give it a whirl.

TurboGears
Web Dev

Comments (6)

Permalink

SimpleBlog - Part 2

In our last adventure we created the skeleton of a simple blogging application using SQLAlchemy as the ORM. In part 2 we are going to look at using Foreign Keys and create a method of allowing comments.

If you need the simpleblog files from the end of Part 1 they can be found here.

Continue Reading »

IT
SimpleBlog
TurboGears

Comments (9)

Permalink

SimpleBlog - Part 1

I’ve noticed a lot of people asking questions about SQLAlchemy in the #turbogears channel on Freenode and the TurboGears mailing list, and there aren’t that many step-by-step tutorials in using TG and SA so I decided to write one.

The tutorial will be published in two sections; Part 1 will cover the basics and part 2 will extend part 1 to cover a few of the trickier aspects of creating a project with SA.

Continue Reading »

IT
SimpleBlog
TurboGears

Comments (19)

Permalink