I have released my code for a private message system.

It's quite powerful, the functions are all displayed in the templates.
For example, if you don't want to have message history in the read
view, just remove it in the templates. Django is really smart and
won't trigger the SQL queries if  it doesn't need the data.

It is not polished for the end user yet but you can easily adapt it
for your project.

The trunk comes with a project configured with sqlite and the
messaging system so you can easily try it out.

If you find a bug, have a feature request or a comment, don't hesitate
to contact me.

http://code.google.com/p/django-pm/

--
Sam
If you speak french or que vous parlez français, /join #django-fr or
http://django-fr.org/










On Oct 21, 10:50 am, "Jon Atkinson" <[EMAIL PROTECTED]> wrote:
> I'm not sure about anything which is ready-made, but this is quite
> easily accomplished with one model:
>
> classMessage(models.Model):
>         """This is a user-to-usermessage"""
>         to = models.ForeignKey(User)
>         from = models.ForeignKey(User)
>        message= models.TextField(blank=True)
>         sent_on = models.DateTimeField(blank=True, auto_now=True)
>         read = models.BooleanField(default=True)
>
>         class Admin:
>                 pass
>
>         def __unicode__(self):
>                 return "Messagefrom %s to %s on %s" % (self.from, self.to, 
> self.message)
>
> Of course, replace the User foreign keys with your user model. Then
> you just create a view for the inbox (to is the currently logged in
> user, read is False), outbox (from is the currently logged in user).
> This is a very simple model, but it should get you going.
>
> --Jon
>
> On 10/21/07, Julien <[EMAIL PROTECTED]> wrote:
>
>
>
> > Hi all,
>
> > I'm aDjangonewbie, and was wondering if there was an existing
> > component/app to manageprivatemessaging features, so that registered
> > users can send messages to each other, have an inbox, etc.
> > Something like there is on community sites like Facebook, or forum
> > apps like PHPBB.
>
> > Your help is much appreciated!
>
> > Many thanks,
>
> > Julien
--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to