As far as adding icons to it, though I think the concept of brabeion overall is superior, you may want to take a look at this project as they seem to support icons by default.
I really think brabeion is great, just wish someone/someone from eldarion would go through and update it and add some more documentation.
Murph
On Friday, May 25, 2012 6:23:59 AM UTC-6, Pratik Mandrekar wrote:
-- On Friday, May 25, 2012 6:23:59 AM UTC-6, Pratik Mandrekar wrote:
Hi,I have been looking at the Badges app in django - https://github.com/eldarion/brabeion/blob/master/docs/ and while it seems to be good at tracking the user's badges It doesn't have an easy way to associate images with badges.usage.txt I tried inheriting the BadgeDetails class and using it as levels to the extended Badge class but I still am confused as to how to use it properly in an app.class BadgeIcon(models.Model):name = models.CharField(max_length=100) description = models.TextField()image = models.ImageField(upload_to="badges/", blank=True) class ExtraBadgeDetails(BadgeDetail): def __init__(self, badgeIcon):self.name= badgeIcon.nameself.description = badgeIcon.descriptionself.image = badgeIcon.imageclass PointsBadge(Badge):def __init__(self, levels = None):self.levels = levelsOne registers the badges at the class level as badges.register(PointsBadge) and I don't really see any way to do it with object instances or how to create badges with icons whenever I want to in my app. Anyone used this app before and customized it for their app? Or any other suggestions for similar functionality?Thanks,Pratik
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/-/0dhnMo2DNr4J.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
No comments:
Post a Comment