django-admin-charts icon indicating copy to clipboard operation
django-admin-charts copied to clipboard

right entries in dashboard starts please

Open tnajun opened this issue 1 year ago • 3 comments

I am trying to add Dashboard stats and testing several models but none of them works. I cannot figure out which box is for which. If yours works correctly, your model and entries in dashboard starts will be helpful.

スクリーンショット 2023-06-01 164701

class Example1(models.Model):
    name = models.CharField(max_length=100)
    quantity = models.IntegerField()
    price = models.IntegerField()
    created_at = models.DateTimeField(default=timezone.now)

    def __str__(self):
        return self.name

tnajun avatar Jun 01 '23 07:06 tnajun

It couldn't find the app named test. What is the Django app in which your model Example1 is placed?

Here is my configuration for inspiration: Snímek obrazovky_2023-06-01_11-16-50

PetrDlouhy avatar Jun 01 '23 09:06 PetrDlouhy

Thank you so much. This is very useful. I could add dashboard stats. And 'No charts available, please configure them' appear on the left. How do I add charts or omit the word.

スクリーンショット 2023-06-01 194440

Note Jazzmin is installed.

tnajun avatar Jun 01 '23 10:06 tnajun

I don't use Jazzmin, so it is not yet supported, but might be fixed by #72. I would gladly pull that PR when all issues are resolved.

PetrDlouhy avatar Apr 12 '24 13:04 PetrDlouhy