Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Custom Django Database Frontend

I have been trying to get my head around Django over the last week or two. Its slowly starting to make some sense and I am really liking it.

My goal is to replace a fairly messy excel spreadsheet with a database and frontend for my users. This would involve pulling the data out of a table, presenting it in a web tabular format, and allowing changes to be made through text fields and drop down menus, with a simple update button that will update all changes to the DB.

My question is, will the built in Django Forms functionality be the best solution? Or would I create some sort of for loop for my objects and wrap them around html form syntax in my template? I'm just not too sure how to approach the solution.

Apologies if this seems like an simple question, I just feel like there is maybe a few ways to do it but maybe there is one perfect way.

Thanks

like image 817
dlyxzen Avatar asked Jul 24 '26 09:07

dlyxzen


1 Answers

The fastest way not to implement you own pages and to have a tabular view of your data is to use the django's built-in admin interface. It gives you sorting, filtering and search functionality and quick to start. You just need to define your models in models.py and setup the admin pages as described in the docs.

Normally the admin page is not used as a representation to users or customers but in the case you described it seems a clean and quick choice.

like image 93
Nasir Avatar answered Jul 26 '26 08:07

Nasir