Designing templates for database application

22 views
Skip to first unread message

rich

unread,
Jan 14, 2018, 5:44:34 PM1/14/18
to Django users
I've developed database applications before but this is my first attempt to use Django. I'm building a client management system for my own use and would like to see examples of templates for this purpose. It's not a blog or document-heavy app, but consists of tables (the schema's written) for companies, contacts, and other sales information. I've not before used grids or forms so these are new to me and having a template I can modify (or use for ideas) would be very helpful. Pointers appreciated.

Rich

Derek

unread,
Jan 15, 2018, 8:45:01 AM1/15/18
to Django users

If this is your first Django app, I would try and use the built-in Django Admin as far as possible - there are numerous ways to customise and extend it (and it creates all the "grids" - by which I assume you mean table-views - and forms for you).    After that you will have a better idea of how Django works and can move on (if needed) to highly customised tables and forms e.g. using class-based forms and views (see: https://docs.djangoproject.com/en/2.0/topics/class-based-views/generic-display/ and https://docs.djangoproject.com/en/2.0/topics/class-based-views/generic-editing/ ).  Templates tend to be very specifc to your app ... the main point to remember is that inheritance is key - the "boiler plate" look&feel part needs to be inherited; so a typical form will only need up a needing a dozen or so lines of actual custom code.
Reply all
Reply to author
Forward
0 new messages