Hi I think after thinking a while I felt its much better to create a
comment model for linking to both entry and link models. But I dont
have to idea how to use the comment in the templates with generic
views...

Can anybody help me in this regard.



On Mar 9, 12:55 pm, stranger <[EMAIL PROTECTED]> wrote:
> Thats a good idea...since we are not changing the django framework
> files we are making a local copy and working on it. Indeed you are
> very helpful. I'll try to do that for now and see. But writing a
> comment model is easy. But I dont know how to use that model in entry
> detail page.
>
> Anyway I need one more favour regarding the template for comment. I
> could n't find much documentation on using comment model. Can you tell
> me how to use it?
>
> Thank you for the help... your  help is much appreciated.
>
> On Mar 9, 12:44 pm, "[EMAIL PROTECTED]"
>
> <[EMAIL PROTECTED]> wrote:
> > Stranger,
>
> > I'll go ahead and warn you that I won't be much help.  In fact, I'm
> > trying to do the exact same thing but have hit a road block.
>
> > From what I understand, editing the django.contrib.comments app in
> > it's current location is a bad thing if you ever plan on upgrading
> > django in the future.  So, I've copied the entire folder and placed it
> > in my project folder.  From there, I added fields for URL and E-mail
> > in the FreeComments model and changed any of the
> > django.contrib.comments to just comments (since it lives in my project
> > folder) in any of the .py files that referenced
> > django.contrib.comments.
>
> > This put the URL and e-mail fields in my database and admin for
> > FreeComment but now, I am unable to use {% load comments %} in my
> > templates.
>
> > That is where I am stuck at the moment.
>
> > Maybe that will spark something in your attempt to customize
> > Comments....
>
> > Post any updates you can and I'll do the same.
>
> > On Mar 9, 2:48 pm, stranger <[EMAIL PROTECTED]> wrote:
>
> > > Hello,
>
> > >        I would like to add comments(Freecomments) to Entry and Link
> > > model in blog application.
> > > I wish the comment model have name, email, website and body. Can
> > > anyone suggest me how to achieve this.
>
> > > The freecomments do not have website and email fields. if I write a
> > > model comment with these fields and sync with database. How to use
> > > that model in entry details page?
> > > also how to add akismet support to the comment model?
--~--~---------~--~----~------------~-------~--~----~
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