How to create a forum site?

210 views
Skip to first unread message

alexvorn2

unread,
Jun 9, 2008, 9:43:41 AM6/9/08
to Google App Engine
How using python and google app engine to create a forum site?

MosX

unread,
Jun 9, 2008, 11:26:51 AM6/9/08
to Google App Engine
How would you expect anyone to explain this to you? You can't do your
own research?

Adam Crossland

unread,
Jun 9, 2008, 11:36:09 AM6/9/08
to Google App Engine
1) Learn to program
2) Look at an existing forum site that you like
3) Copy it

joh...@easypublisher.com

unread,
Jun 9, 2008, 4:13:24 PM6/9/08
to google-a...@googlegroups.com
On 6/9/08, alexvorn2 <alex...@gmail.com> wrote:
>
> How using python and google app engine to create a forum site?

Or you can pay me and I write one for you! :-D
/Johan

--
Johan Carlsson
Colliberty Easy Publisher
http://www.easypublisher.com

peterk

unread,
Jun 9, 2008, 4:20:53 PM6/9/08
to Google App Engine
Really it's a very big question. But a starting point would be to
think about your data. You'd probably want an object to represent a
post. And an object to represent a thread. With a reference in the
post object to the thread that contains that post.

Then you'd think about the processing you want to apply to your data
types, and mapping that processing to URLs. Getting and sorting
threads by date created, perhaps? Getting all posts of a certain
thread, sorted by date?

Then think about how to present the results of that processing. You'd
probably want to present the data itself, along with a means to insert
new data (new threads/posts) i.e. forms embedded in the pages.

That would probably be your simplest starting point. Obviously you
could have all sorts of other things too, like a user registration and
management system etc.

On Jun 9, 9:13 pm, joh...@easypublisher.com wrote:

nchauvat (Logilab)

unread,
Jun 9, 2008, 5:17:38 PM6/9/08
to Google App Engine
On 9 juin, 15:43, alexvorn2 <alexvo...@gmail.com> wrote:
> How using python and google app engine to create a forum site?

Go to http://lax.logilab.org

Write a schema.py that reads:

class Thread(EntityType):
title = String(maxsize=50, required=True)
description = String()

class Post(EntityType):
title = String(maxsize=100, required=True)
publish_date = Date(default='TODAY')
text = String(fulltextindexed=True)
in_thread = SubjectRelation('Thread', cardinality='?*')

and read the rest of the tutorial to get you started.

It is a *very*basic* forum site, but it is a forum site that you get
working in less than 10 minutes.

Making a nice user interface is what will take you time. Most of the
rest is taken care of by the framework.

Hope this helps,
Reply all
Reply to author
Forward
0 new messages