Re: [mezzanine-users] Page Teaser

2015-04-09 Thread Ken Bolton
On Thu, Apr 9, 2015 at 2:37 PM, roland balint rabal...@gmail.com wrote: and i get [Page: About Us] Is that a list containing a single Page object? -- You received this message because you are subscribed to the Google Groups Mezzanine Users group. To unsubscribe from this group and stop

Re: [mezzanine-users] Re: new release? - cannot import name 'find_template_loader'

2015-04-09 Thread Stephen McDonald
Big thanks to Alex Hill who's worked out the fix for the issue last reported here - if you're testing, please pull the latest in again and give it a whirl. On Thu, Apr 9, 2015 at 3:02 PM, Stephen McDonald st...@jupo.org wrote: My apologies, I was wrong earlier - looks like this code's really

Re: [mezzanine-users] Page Teaser

2015-04-09 Thread roland balint
displays nothing the only time displays anything is when teased_page is in the bracket w/o anything behind it thx Roland On Thursday, April 9, 2015 at 3:25:08 PM UTC-4, Josh Cartmell wrote: I'm not sure where to go with this at this point. I don't think using Displayable is the answer

[mezzanine-users] Re: Wordpress Import broken

2015-04-09 Thread Aniket Maithani
This worked for me!! Thanks On Sunday, 4 May 2014 20:02:17 UTC+5:30, Alex wrote: I met the same issue with Mezzanine 3.1.3. Wordpress exports invalid pubDate Wed, 30 Nov -0001 00:00:00 + for draft (not published) posts. I've fixed it by adding the following check in

Re: [mezzanine-users] Page Teaser

2015-04-09 Thread roland balint
gone through again but still need help; missing something and can't figure it out ... the goal is to get the first 50 characters from a published page onto the index page so index.html {% include teaser.html %} teaser.html {% load page_teaser_tags keyword_tags mezzanine_tags i18n %}

Re: [mezzanine-users] Page Teaser

2015-04-09 Thread Josh Cartmell
I'm not sure where to go with this at this point. I don't think using Displayable is the answer because Displayable is an abstract base class. What happens if you put {{ teased_page.title }}? On Thu, Apr 9, 2015 at 3:07 PM, roland balint rabal...@gmail.com wrote: maybe Displayable should be

Re: [mezzanine-users] Page Teaser

2015-04-09 Thread roland balint
yes, supposed to be a single page called by its slug ie return page = Page.objects.get(slug=slug) thx Roland On Thursday, April 9, 2015 at 3:33:41 PM UTC-4, Kenneth Bolton wrote: On Thu, Apr 9, 2015 at 2:37 PM, roland balint raba...@gmail.com javascript: wrote: and i get [Page: About

Re: [mezzanine-users] Page Teaser

2015-04-09 Thread roland balint
looks like we have no way edit previous posts .. meant try/except/else thx Roland -- 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

Re: [mezzanine-users] Page Teaser

2015-04-09 Thread Josh Cartmell
There are still some problems in the usage of the tag. An as_tag adds something to the context, so I wouldn't render anything in the tag. For example, once you call {% page_teaser about-us as teased_page %} teased_page is added to the context so you would access it like, {{ teased_page }}. Try

Re: [mezzanine-users] Re: new release? - cannot import name 'find_template_loader'

2015-04-09 Thread Alexander Hill
Thanks for the report Graham - a fix for this has just been applied to master. Cheers, Alex On Thu, Apr 9, 2015 at 2:33 PM, Graham greenbay.gra...@gmail.com wrote: All good. g On 09/04/15 17:18, Stephen McDonald wrote: I've actually added a new issue label called release blockers to the

Re: [mezzanine-users] Page Teaser

2015-04-09 Thread roland balint
maybe Displayable should be used instead of Page thx Roland -- 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

Re: [mezzanine-users] Page Teaser

2015-04-09 Thread Ken Bolton
Looking good! Thank you for sharing your solution. Nit-picky, perhaps, but in the page_teaser method I prefer try/except/else, e.g.: try: page = Page.objects.get(slug=slug) except DoesNotExist: return None else: return page Python's try/except/else/finally

Re: [mezzanine-users] Page Teaser

2015-04-09 Thread Josh Cartmell
My next step would be to put some print statements inside your templatetag to try to figure out what if anything is being returned. Side note, I would highly recommend moving the templatetags to your own app. It's not a very good idea to modify Mezzanine directly because if you ever upgrade

Re: [mezzanine-users] Page Teaser

2015-04-09 Thread Josh Cartmell
The page is in the context, so that's good, but I guess it doesn't have a description. Try: {{ teased_page.richtextpage.content|richtext_filters|truncatewords_html:12|safe }} On Thu, Apr 9, 2015 at 2:37 PM, roland balint rabal...@gmail.com wrote: did that already ... in teaser.html reduced

[mezzanine-users] Postgresql schemas troubles

2015-04-09 Thread Carlos Alfredo Morales Anzures
Hi everyone. Sorry for my english i hope you can understand. I just started learning Django, i'm trying with Cartridge in Mezzanine, i follow the Cartridge documentaction to start the project with Postgresql. I changed the local_setting.py so i can connect to my local database mercado

Re: [mezzanine-users] Page Teaser

2015-04-09 Thread roland balint
nothing is being returned and i do have text in description column in the about-us page entry thx Roland On Thursday, April 9, 2015 at 2:45:26 PM UTC-4, Josh Cartmell wrote: The page is in the context, so that's good, but I guess it doesn't have a description. Try: {{

Re: [mezzanine-users] Page Teaser

2015-04-09 Thread roland balint
thx if/except/else has been implemented thx Roland On Thursday, April 9, 2015 at 4:25:57 PM UTC-4, Kenneth Bolton wrote: Looking good! Thank you for sharing your solution. Nit-picky, perhaps, but in the page_teaser method I prefer try/except/else, e.g.: try: page =