how to attach comments to a User instance

25 views
Skip to first unread message

heni yemun

unread,
Sep 6, 2012, 2:07:58 AM9/6/12
to django...@googlegroups.com
Hi,
I'm having difficulty attaching comments to a User object i created. So walk me through the process of attaching comments to displaying them. THANK YOU!

Mike Dewhirst

unread,
Sep 6, 2012, 3:27:40 AM9/6/12
to django...@googlegroups.com
On 6/09/2012 4:07pm, heni yemun wrote:
> Hi,
> I'm having difficulty attaching comments to a User object i created. So
> walk me through the process of *attaching comments* to *displaying
> them*. THANK YOU!

Difficult to know exactly what you are trying to do from your
specification but typically, you would use a model (representing
comments) and give it a foreign key relationship to the user model.

Then the Django Admin app would be the easiest way to add and display them.

If this doesn't make sense to you, the best way forward is to revisit
the tutorial Part 2 and Part 3 ...

https://docs.djangoproject.com/en/1.4/intro/tutorial02/
https://docs.djangoproject.com/en/1.4/intro/tutorial03/

Hope this helps.


>
> --
> You received this message because you are subscribed to the Google
> Groups "Django users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/django-users/-/42of1bCT2H4J.
> To post to this group, send email to django...@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.

Reply all
Reply to author
Forward
0 new messages