Monday, October 3, 2011

Re: How to do some additional process while saving a django flatpage

Hello Phang,

Thanks for your reply. Well the requirement is like when ever a page is created i want to save an entry into the menu table to. This is to be an automatic process. If i understand correctly, the method you suggested will require a manual process or a cron running to fetch the data from the flatpage table and then enter it into my menu table. So is there any way to make it an automated process?

Thanks and Regards,

Swaroop Shankar V



On Mon, Oct 3, 2011 at 12:35 PM, Phang Mulianto <braveh4rt@gmail.com> wrote:

why not query your flatpage db and use the field for the menu in ur table.. flatpage have url and title.. get url n title and put in your menu template..no need signaling....
can add cache to as the flatpage not modified to often..

On Oct 2, 2011 10:03 PM, "Swaroop Shankar V" <swaroopsv@gmail.com> 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. Thanks
> Regards,
>
> Swaroop Shankar V
>
> --
> 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.

--
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