Django-SEO issue

144 views
Skip to first unread message

jondbaker

unread,
Aug 17, 2012, 4:16:53 PM8/17/12
to django...@googlegroups.com
I've successfully installed Django-SEO, but when I try to limit the number of backends (I only need/want my admin to have 'path' and not the other three) I am met with the following error:

AttributeError at /admin/

'NoneType' object has no attribute '_meta'



seo.py
from rollyourown import seo

class AppMetadata(seo.Metadata):
    title = seo.Tag(head=True, max_length=68)
    description = seo.MetaTag(max_length=155)

    class Meta:
        backends = ('path',)
        #backends = ('path', 'modelinstance', 'model', 'view',) This works but includes all default backends

admin.py
from django.contrib import admin
from rollyourown.seo.admin import register_seo_admin

from localsite.seo import AppMetadata

register_seo_admin(admin.site, AppMetadata)

Jonathan D. Baker

unread,
Jan 22, 2013, 3:36:54 PM1/22/13
to django...@googlegroups.com
I wasn't. If anyone has a solution I'd still be interested in cleaning up the clutter and removing the backends I'm not using.

On 01/22/2013 12:05 PM, Jeff Ammons wrote:
Were you able to figure out what was happening here? I'm experiencing the same issue.
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/gB5-ZyRCpHIJ.
To post to this group, send email to django...@googlegroups.com.
To unsubscribe from this group, send email to django-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.


-- 
Software Developer
https://github.com/jondbaker
GPG: 1F6F3FFD

Jeff Ammons

unread,
Jan 23, 2013, 2:46:33 PM1/23/13
to django...@googlegroups.com
Looks like a bug or partial implementation issue. I just submitted a pull request, so hopefully it'll get accepted quickly.


-Jeff
Reply all
Reply to author
Forward
0 new messages