Django comments in shell

139 views Asked by At

I'm having trouble pulling comments into my template using django comments. I'd like to test some things out in the shell - ie. pulling in an object and getting the set of comments for it - but I'm not sure how to do that.

Is there away to access a model's comments in the shell?

1

There are 1 answers

0
9-bits On BEST ANSWER
python manage.py shell
from django.contrib.comments import Comment

c = Comment.objects.filter(...)

...