loading...

re: DJANGO STEPS TO CREATING A MODULE (to show) VIEW POST

TOP OF THREAD FULL DISCUSSION
re: Can I use templates and render HTML instead of a class?
 

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.

Ok, is there just one Admin.py?

There should be one admin per appliction in your project.

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

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.

Code of Conduct Report abuse