Regards,
Swaroop Shankar V
-- Swaroop Shankar V
On Mon, Oct 3, 2011 at 9:22 PM, Swaroop Shankar V <swaroopsv@gmail.com> wrote:
Thanks a lot Daniel, I guess this is exactly what I require. Will check it and revert back.Thanks and Regards,
Swaroop Shankar V
On Mon, Oct 3, 2011 at 4:21 PM, Daniel Roseman <daniel@roseman.org.uk> wrote:
On Sunday, 2 October 2011 15:03:12 UTC+1, Swaroop Shankar wrote:Hi,I am trying to build a menu system which can be controlled at the admin area. For the content management purpose i am using django flatpage. So when a page is getting saved i need to insert the page title and url in the menu table i have created. So i guess a flatpage signal is the best way to go, but after searching a lot i could not find any such signals available for flatpage. So which is the best approach to implement whatever i had described above. ThanksRegards,
Swaroop Shankar VYou don't need a specific flatpages signal. You can just use the normal pre-save signal and attach the listener to flatpages only.from django.db.models.signals import pre_savefrom django.dispatch import receiverfrom django.contrib.flatpages.models import FlatPage@receiver(pre_save, sender=FlatPage)def my_handler(sender, **kwargs):...https://docs.djangoproject.com/en/1.3/topics/signals/#connecting-to-signals-sent-by-specific-senders
--DR.--To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/-xs77MXmBh0J.
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 django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
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 django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
No comments:
Post a Comment