Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Popular Posts & Taggit for Elephantblog

113 views
Skip to first unread message

panjul76

unread,
Nov 7, 2012, 12:55:15 PM11/7/12
to django-...@googlegroups.com
I am newbie on feincms & elephantblog want to ask question.
- How to get popular post from elephantblog?
- How to add django-tagit for elephantblog?

Any example code will be very appreciate to learn elephantblog & feincms.
Thanks in advance

Boris Shomodjvarac

unread,
Dec 3, 2012, 9:21:15 AM12/3/12
to django-...@googlegroups.com
Entry.register_extensions(
 
'...',
 
'elephantblog.extensions.tags'
)


This is how you turn on taggit, note that you have to do a ./manage.py syncdb or better use South for database migration.

Boris.
Message has been deleted
Message has been deleted

Natascha

unread,
Feb 12, 2014, 5:31:09 AM2/12/14
to django-...@googlegroups.com, sho...@gmail.com
Hi, when I try this:
 
Entry.register_extensions(
   
'feincms.module.extensions.
translations'
,
   
'elephantblog.extensions.tags',
)


i get this error:

'elephantblog.extensions.tags',
  File "/home/sascha/website/test/
local/lib/python2.7/site-packages/feincms/extensions.py", line 74, in register_extensions
    '%r is an invalid extension.' % extension)
django.core.exceptions.
ImproperlyConfigured: <function register at 0x259b848> is an invalid extension.

and when I try this

Entry.register_extensions(
   
'feincms.module.extensions.translations',
   
'tags',
)

 i get another one
 
 File "/home/sascha/website/test/local/lib/python2.7/site-packages/feincms/extensions.py", line 50, in register_extensions
    ext, cls.__name__))
django.core.exceptions.
ImproperlyConfigured: tags is not a valid extension for Entry

What can i do?
Thanks
Natascha

Matthias Kestenholz

unread,
Feb 12, 2014, 6:11:52 AM2/12/14
to django-...@googlegroups.com, sho...@gmail.com, Simon Bächler
Hi,

On 12/02/14 11:14, Sascha wrote:
> Hi, when I try this:
>
> Entry.register_extensions(
> 'feincms.module.extensions.translations',
> 'elephantblog.extensions.tags',
> )
>
> i have an error..
> 'elephantblog.extensions.tags',
> File
> "/home/sascha/website/test/local/lib/python2.7/site-packages/feincms/extensions.py",
> line 74, in register_extensions
> '%r is an invalid extension.' % extension)
> django.core.exceptions.ImproperlyConfigured: <function register at
> 0x259b848> is an invalid extension.
>
>
> and when I try this
> Entry.register_extensions(
> 'feincms.module.extensions.translations',
> 'tags',
> )
> i get another one
> File
> "/home/sascha/website/test/local/lib/python2.7/site-packages/feincms/extensions.py",
> line 50, in register_extensions
> ext, cls.__name__))
> django.core.exceptions.ImproperlyConfigured: tags is not a valid
> extension for Entry
>

That's a known problem:

https://github.com/feincms/feincms-elephantblog/issues/38

The solution is outlined in my comment; the tags extension should be
adapted to the new extensions mechanism.


Best regards
Matthias
Message has been deleted

Natascha

unread,
Sep 8, 2014, 4:45:38 AM9/8/14
to django-...@googlegroups.com
Hi, can someone tell me, how to integrate the taggit uhls in to the elephantblog extensions?

Thanks!
Reply all
Reply to author
Forward
0 new messages