pinax / pinax-likes

a liking app for Django

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

sub dir

agiledesign2 opened this issue · comments

i am going to like pinax blog model post.
I have pinax blog in app/pinax/blog
And pinax like dont acess it.
In utils.py of pinax like have
Return "{0}.{1}".format(obj._meta.app_label, obj.meta.object_name)

@agiledesign2 So, you are using Pinax blog starter project, and are trying to use pinax-likes with it. And you have installed pinax-likes and added it to settings.py? Am I understanding this correctly?

Yes Wan to use pinax like to like Post model of pinax blog.
so i put this
PINAX_LIKES_LIKABLE_MODELS={"pinax.blog.Post": {}}

I have all pinax add i pinax dir.
Now when i open blog detail url i get this error: KeyError: 'blog.Post'.

So i think pinax-likes take 'pinax' as an add and no a dir, and It take 'blog.Post' as an model.

@agiledesign2 Would it help to look at an example of how it was implemented elsewhere? For example, it was used in Cloudspotting 2. I'm sure there are other examples though. https://github.com/pinax/cloudspotting2/search?q=like&unscoped_q=like