Re: [mezzanine-users] How to replicate/copy complex pages

2015-01-28 Thread Ken Bolton
Hi Brygg, Your understanding is correct, though in my experience more often formulated so: $ python manage.py shell Let me take a moment to plug the excellent django-extensions module. In your python environment, `pip install django-extensions` will download and add the module to your python

Re: [mezzanine-users] Google Analytics - Does footer_scripts.html need updating ?

2015-01-28 Thread Stephen McDonald
There's a recent relevant discussion here: https://github.com/stephenmcd/mezzanine/pull/1191 Apparently the code should work fine as is. On Wed, Jan 28, 2015 at 7:19 PM, Mark Doukidis mdouki...@gmail.com wrote: Having trouble getting Google Analytics to acknowledge a sites tracking code. I

[mezzanine-users] Google Analytics - Does footer_scripts.html need updating ?

2015-01-28 Thread Mark Doukidis
Having trouble getting Google Analytics to acknowledge a sites tracking code. I can see it in the generated pages and looks okay. Have noticed that the code in Mezzanine was last updated in 2012 and wondered if it needs updating as it appears quite different from the suggested code from

Re: [mezzanine-users] Google Analytics - Does footer_scripts.html need updating ?

2015-01-28 Thread Mark Doukidis
I was a little impatient as the existing code works fine. Google just a bit slower confirming all okay than I would have liked. Sleeping on it helped. Thanks Stephen for the discussion link. I guess Google's plan to phase in the Universal replacing Classic needs looking at eventually. As

Re: [mezzanine-users] Displayable Model, Urls, Template

2015-01-28 Thread S.C.
yea, the _slash is defined. it's working now, so thank for your help. On Thursday, January 29, 2015 at 12:15:49 AM UTC+8, Josh Cartmell wrote: That's a good point, is _slash even defined anywhere? I think: url(^techspec/(?Pslug.*)/$, tsmodelview, name=techspec_model), should work On

Re: [mezzanine-users] Best Model Architecture?

2015-01-28 Thread Josh Cartmell
Gotcha, I think I'm understanding better what you want to do. I'm not sure this is possible because presumably the Slide class will need a foreignkey to the parent page class that it shows up on, is that correct? I.e. wouldn't the models really look something like this: class SliderPage(Page):

Re: [mezzanine-users] Displayable Model, Urls, Template

2015-01-28 Thread Josh Cartmell
That's a good point, is _slash even defined anywhere? I think: url(^techspec/(?Pslug.*)/$, tsmodelview, name=techspec_model), should work On Wed, Jan 28, 2015 at 2:54 AM, S.C. sola1...@gmail.com wrote: i found out maybe because my url did not declare correctly, i mean the format for