Profile for Steve Rawlinson
| Name | Steve Rawlinson |
|---|---|
| Email Address | Reveal this emailaddress |
| Avatar | |
| Posts | 2 |
-
- 2009-09-25 17:58:14
- Re: You also need this if adding comments to your models
- Board » Comments » comment category for "Comments (sct)"
-
Thanks Herbert, I didn't know about RequestContexts. I still have a lot to learn about Django.
And hanks for Sphene! Especially the board/comments feature. It is exactly what I'm looking for.
Best Regards,
Steve
-
- 2009-09-25 02:35:02
- You also need this if adding comments to your models
- Board » Comments » comment category for "Comments (sct)"
-
When adding comments for your own model you also need to pass the Http 'request' object into your template. So in your view.py you will have:
view.py
def myfunction(request): # stuff return render_to_response('mytemplate.html', {'request': request})
I hope that helps someone, it took me a while to figure out.
Steve
--- Last Edited by Steve at 2009-09-25 02:35:58 ---


