S
S
SHADRIN2020-07-03 18:06:09
Django
SHADRIN, 2020-07-03 18:06:09

I don't see the new table in the admin panel, what's wrong?

Hi all!
I created a new model class, but it is not visible in the admin panel, I did the migration.
What's wrong? Maybe somewhere you need to register it?

class SiteScripts(models.Model):
    directory = models.TextField()
    abouth = models.TextField(max_length=250)
    mainfile = models.TextField(max_length=35)
    img = models.TextField(max_length=35)
    name = models.TextField(max_length=35)


If so, this is the error. Maybe the problem is something else, but still there is no table in the admin panel.
5eff495fa079d689137311.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dr. Bacon, 2020-07-03
@bacon

They explicitly write to you that there is no such table, which means that the migration was not / was not called / did not work.
PS no such table - I don’t see a new table, facepalm

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question