Re: Signals not working as expected

2013-11-29 Thread Robin Lery
Ok, thank you all! On Fri, Nov 29, 2013 at 9:56 PM, Robin Lery wrote: > Yes. > > > On Fri, Nov 29, 2013 at 9:55 PM, Robin Lery wrote: > >> Do i put the codes to all the app's - models.py? >> >> >> On Fri, Nov 29, 2013 at 9:44 PM, Tom Evans wrote: >> >>> On Fri, Nov 29, 2013 at 4:06 PM, Aamu P

Re: Signals not working as expected

2013-11-29 Thread Robin Lery
Yes. On Fri, Nov 29, 2013 at 9:55 PM, Robin Lery wrote: > Do i put the codes to all the app's - models.py? > > > On Fri, Nov 29, 2013 at 9:44 PM, Tom Evans wrote: > >> On Fri, Nov 29, 2013 at 4:06 PM, Aamu Padi wrote: >> > Thank you for the answer. I am a newbie, would be very grateful if you

Re: Signals not working as expected

2013-11-29 Thread Robin Lery
Do i put the codes to all the app's - models.py? On Fri, Nov 29, 2013 at 9:44 PM, Tom Evans wrote: > On Fri, Nov 29, 2013 at 4:06 PM, Aamu Padi wrote: > > Thank you for the answer. I am a newbie, would be very grateful if you > could > > please show me how to do that? > > Put the code in sign

Re: Signals not working as expected

2013-11-29 Thread Tom Evans
On Fri, Nov 29, 2013 at 4:06 PM, Aamu Padi wrote: > Thank you for the answer. I am a newbie, would be very grateful if you could > please show me how to do that? Put the code in signals.py at the bottom of models.py and delete signals.py Cheers Tom -- You received this message because you are

Re: Signals not working as expected

2013-11-29 Thread Aamu Padi
Thank you for the answer. I am a newbie, would be very grateful if you could please show me how to do that? On Fri, Nov 29, 2013 at 9:28 PM, Jérôme Thiard wrote: > From Django documentation > https://docs.djangoproject.com/en/1.6/topics/signals/#connecting-receiver-functions > > You can put sign

Re: Signals not working as expected

2013-11-29 Thread Jérôme Thiard
>From Django documentation https://docs.djangoproject.com/en/1.6/topics/signals/#connecting-receiver-functions You can put signal handling and registration code anywhere you like. > However, you’ll need to make sure that the module it’s in gets imported > early on so that the signal handling gets

Signals not working as expected

2013-11-28 Thread Aamu Padi
I am trying to create a project for creating feeds/activity feeds of a user with the help of a blog . These are the models - class StreamItem(models.Model): > user = models.ForeignKey(User) > content_type