Django for in-house data

2013-12-08 Thread giuliano . bertoletti
Hello, I'm using Django to have people in my company access our database. Since the application is not meant for public use, I was wondering how to best struture it. The admin framework seems to be well suited for manipulating tables via web, while views (in my understanding) seem better for

Re: Django for in-house data

2013-12-09 Thread giuliano . bertoletti
the database is built from scratch, so I can use whatever I wish. Currently I'm performing some tests with SQLite, but plan to migrate to MySQL for production. The project is building a basic CRM with a few tweaks for managing specific business types. I'm new to Django and Web frameworks i

ModelForms

2013-12-11 Thread giuliano . bertoletti
Hello, when using ModelForms, which is the correct way to implement the "edit item" pattern? Suppose I've a table with many rows, each representing a record in a database. I choose one and wish to display/let the user edit the details. I'm trying to use a ModelForm and fill some fields with s

Url logic

2013-12-15 Thread giuliano . bertoletti
Hello, I'm wondering how you would you organize the url layout in a following scenario Suppose I've a table of Authors and for each author a list of books. A book can have only one author, so I link the author with a foreign key. Now I could point to a particular author with a url like thi