samedi 31 mai 2014

Django Project Model Layout (how should this be done?)

Vote count:


So my project has several divisions: - sales division - security division - explorer division

now obviously they have fields that are common, for example name, gender etc. after reading some forums, i think i can do this either:

  1. Create a main app which contains all field and reference them from other apps.

    • I think the advantage here is that, for example sales app would only need the main app to work.

  2. Create a single app which contains different classes.

    • This would be easy but I don't know how to separate them because the sales division should only access sales and not security.

  3. Create an app for each

    • It would make them independent and would work separately but fields would be repeated and would not have any relationships.

Thoughts are VERY welcome.

asked 1 min ago

Aucun commentaire:

Enregistrer un commentaire