DEV Community

Discussion on: DJANGO STEPS TO CREATING A MODULE (to show)

Collapse
 
j_mplourde profile image
Jean-Michel Plourde

Since an admin is a really comon component of a website, Django takes care of it and render everything. All you have to do is register your model as an admin model and that's it.

Thread Thread
 
yobretyo profile image
Bret

Ok, is there just one Admin.py?

Thread Thread
 
j_mplourde profile image
Jean-Michel Plourde

There should be one admin per appliction in your project.

Thread Thread
 
yobretyo profile image
Bret

So for each App? I only see one admin, I created a products app and a test app

Thread Thread
 
j_mplourde profile image
Jean-Michel Plourde

Yes, when you run python manage.py startapp projectApp it creates an app with all the required files. If it's not there, just create it under the app folder you want it.