paint-brush
Automatically Register All Models In Django Admin — Django Tipsby@chillaranand
11,247 reads
11,247 reads

Automatically Register All Models In Django Admin — Django Tips

by Chillar Anand3mNovember 25th, 2017
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

Django's inbuilt admin interface is one of the most powerful & popular features of Django. We need to register models with the admin interface, so that it can read metadata and populate interface for it. Automatically registering models with admin becomes a tedious task. To automate this process, we can programmatically fetch all the models in the project and register them with admin. We can use this admin class when we are registering the model so that all the fields in the model will show up in admin.

Companies Mentioned

Mention Thumbnail
Mention Thumbnail
featured image - Automatically Register All Models In Django Admin — Django Tips
Chillar Anand HackerNoon profile picture
Chillar Anand

Chillar Anand

@chillaranand

L O A D I N G
. . . comments & more!

About Author

Chillar Anand HackerNoon profile picture
Chillar Anand@chillaranand

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite