Re: [mezzanine-users] page_link via code

2015-11-09 Thread Ken Bolton
Hi Lorenzo, Can you please be a little clearer about your goals? The temptation to direct you to the HTML anchor tag is strong. -ken On Mon, Nov 9, 2015 at 10:12 AM, Lorenzo D'Agostino < lorenzodagosti...@gmail.com> wrote: > Does anybody know how to create a page_link via code? > > -- > You

Re: [mezzanine-users] Does Cartridge have a module for GIS store locator?

2015-11-09 Thread Ken Bolton
Hi Ed, While Mezzanine is only an application written on top of the Django framework, it has no built-in capability for GIS. That said, the Python ecosystem – of which Mezzanine is just a very small part – has modules you can use to build a store locator. The place to start is the excellent

[mezzanine-users] page_link via code

2015-11-09 Thread Lorenzo D'Agostino
Does anybody know how to create a page_link via code? -- You received this message because you are subscribed to the Google Groups "Mezzanine Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to mezzanine-users+unsubscr...@googlegroups.com. For more

Re: [mezzanine-users] Re: Change comments count on deletion of comment(s) ?

2015-11-09 Thread sonu kumar
Finally it works, I had to use comment=ThreadedComment(pk=pk) comment.delete() On Saturday, November 7, 2015 at 2:15:34 AM UTC+5:30, sonu kumar wrote: > > I can't get it working. currently I am using following snippet for > deletion > > from django_comments.views.moderation import

Re: [mezzanine-users] page_link via code

2015-11-09 Thread Eduardo Rivas
I think he means the Link page type. In that case, it's just like creating any Django model instance (import the class, create an instance, modify attributes to your liking, call the save() method). Another option is to create a fixture or data migration. Mezzanine does this when calling