Removing the 'site' (not the website/url) field from django-comments

2010-09-27 Thread EJ
Hi all,

I'm trying to have comments on my sites shown on all other sites, as I
have a 'mobile' skin for my site on a separate domain and site_id.

So for example:
Joe posts a comment on http://www.site1.mydomain.com

Mary goes to http://www.mobilesite.mydomain.com and can see and
respond to Joe's comment.

I'm not highly experienced in Django or programming in general, it
looks like I will need to override some functions and classes such as
BaseCommentNode and some template tags, and remove 'site__pk =  but
I'm not sure which ones or how to do it.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Removing the 'site' (not the website/url) field from django-comments

2010-09-28 Thread Tim Sawyer
> Hi all,
>
> I'm trying to have comments on my sites shown on all other sites, as I
> have a 'mobile' skin for my site on a separate domain and site_id.
>
> So for example:
> Joe posts a comment on http://www.site1.mydomain.com
>
> Mary goes to http://www.mobilesite.mydomain.com and can see and
> respond to Joe's comment.
>
> I'm not highly experienced in Django or programming in general, it
> looks like I will need to override some functions and classes such as
> BaseCommentNode and some template tags, and remove 'site__pk =  but
> I'm not sure which ones or how to do it.

When I did something similar, I had the same SITE_ID for the two projects.
 The two sites still had their own settings.py and application source. 
The key things that were different in settings.py were that ROOT_URLCONF
pointed to different URLs, and TEMPLATE_DIRS pointed to different top
level templates.  In that way I have different sites, but still referring
to the same database tables, and crucially the same SITE_ID, so you
wouldn't have the problem with django-comments.

Would that work for you?

Tim.


-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Removing the 'site' (not the website/url) field from django-comments

2010-09-28 Thread EJ
Hi Tim,

Good idea, but that won't work unfortunately as we use the 'Site'
functionality between the 40-odd sites.

Thanks though!

Ethan

On Sep 28, 7:50 pm, "Tim Sawyer"  wrote:
> > Hi all,
>
> > I'm trying to have comments on my sites shown on all other sites, as I
> > have a 'mobile' skin for my site on a separate domain and site_id.
>
> > So for example:
> > Joe posts a comment onhttp://www.site1.mydomain.com
>
> > Mary goes tohttp://www.mobilesite.mydomain.comand can see and
> > respond to Joe's comment.
>
> > I'm not highly experienced in Django or programming in general, it
> > looks like I will need to override some functions and classes such as
> > BaseCommentNode and some template tags, and remove 'site__pk =  but
> > I'm not sure which ones or how to do it.
>
> When I did something similar, I had the same SITE_ID for the two projects.
>  The two sites still had their own settings.py and application source.
> The key things that were different in settings.py were that ROOT_URLCONF
> pointed to different URLs, and TEMPLATE_DIRS pointed to different top
> level templates.  In that way I have different sites, but still referring
> to the same database tables, and crucially the same SITE_ID, so you
> wouldn't have the problem with django-comments.
>
> Would that work for you?
>
> Tim.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.