I am trying to create a sidebar and an running into some trouble. I have 2 problems:
My model is pretty straight forward. I have categories and links under the categories. class Catagory(models.Model): name = models.CharField(max_length=200) ... class Link(models.Model): catagory = models.ForeignKey(Catagory) name = models.CharField(max_length=200) url = models.CharField(max_length=200) icon = models.ImageField(upload_to=('upload/sidebar/icon/%Y/%m/%d'), blank=True) newWin = models.BooleanField('Open in new window?') ... The first problem I am trying to solve is how to format my template so that the appropriate links are under each category. It looks like "regroup" is the way to go, but I am not sure how to format the data in my view class so that "regroup" will work. Because the data is in two classes. The second problem I am having is I cant see a good way to use this app in all my web pages to populate the sidebar. Can you do an include of a view? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---