Monday, January 23, 2012

Re: Somebody please attend to me

On Mon, 23 Jan 2012 03:38:14 -0800 (PST), coded kid
<duffleboi911@gmail.com> wrote:

> Please how can I get user post update, make their friends comment and
>share the update in django? Just like the way FB update is. I hope you
>get my point? Thanks so much

You asked essentially the same question just a day or two ago; the
only obvious difference is that post used Twitter as the simile, and
this time you are referencing Facebook as the simile.

The answer probably hasn't changed -- study any available code for
such types of sites to determine the types of operations needed, then
implement similar.

At the minimum you'll need a registration system, a subscription
system (to link "followers" to posters), possibly AJAX if you want
live/periodic update checking (HTML is not optimized for ad hoc /push/
of material to reader clients; instead the client has to ask for
material). Possibly some log system that tracks the viewed status of
(poster, follower, message) unless you expect readers to have to
navigate the entire page of posts and comments. If comments are allowed
to nest, you'll need some way to provide threading (references to
previous comment, not just to parent post).

I'd suggest first looking at simple blogging (didn't one of the
Django books include the basic source for such?). Initially, a system
where registered users may add posts to their "account", and anyone read
those posts -- all they need is to know the user name. Then add direct
(non-threaded) comments from other registered users. Later, maybe add
threaded responses. Lastly, add in the subscription lists and an AJAX
client to permit live updates (option: flush all "unread" commentary to
client when it connects, or only comments posted in the last n-minutes
-- before going into "push" mode -- where new comments are sent to all
logged in subcribers to the parent user).

{Side comment on your usage of english: you can not "make their
friends comment" -- that phrase implies it is mandatory and probably
requires using a threat of violence; you could, however, "allow" or
"permit" them to comment.}
--
Wulfraed Dennis Lee Bieber AF6VN
wlfraed@ix.netcom.com HTTP://wlfraed.home.netcom.com/

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment