Admin site and Model

21 views
Skip to first unread message

Harish Soni

unread,
May 4, 2018, 2:32:49 AM5/4/18
to django...@googlegroups.com
Hi All,
whenever I create a new model(table) and migrate. I can see it is available in mysql but its not showing in admin. I have to delete my db and make migrations of all the tables again to make that table show in admin.
 any help would be appreciate.

Regards
Harish Soni Swarnkar

Fidel Leon

unread,
May 4, 2018, 5:28:50 AM5/4/18
to django...@googlegroups.com
You need to add your model to the app's admin.py file.


--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAMOFmommxT%3DCLjabwVo0T5ubJ-z8GhN8xwbCXMFcEHXpjR4DEw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


--

Harish Soni

unread,
May 4, 2018, 5:35:24 AM5/4/18
to django...@googlegroups.com
I've added to app's admin.py then only mentioned in mail.

Fidel Leon

unread,
May 4, 2018, 6:45:51 AM5/4/18
to django...@googlegroups.com
May we see your admin.py?

El vie., 4 may. 2018 a las 8:32, Harish Soni (<hk22...@gmail.com>) escribió:
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAMOFmommxT%3DCLjabwVo0T5ubJ-z8GhN8xwbCXMFcEHXpjR4DEw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages