Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>From the short description, you probably wouldn't have just one model in your app.</p> <p>From your question I'm assuming you don't have a lot of experience with databases... Here are a few suggestions:</p> <p><a href="http://rads.stackoverflow.com/amzn/click/1590594630" rel="nofollow noreferrer">Start here</a> because if you don't understand the basic principles of database design, foreign keys, one-to-one, one-to-many, many-to-many, etc etc etc; you will have a hard time designing your Django models.</p> <p>It would be nice to <a href="http://rads.stackoverflow.com/amzn/click/0471412767" rel="nofollow noreferrer">learn SQL too</a>. Django models are supposed to insulate you from it, but in reality it is using SQL underneath and knowing SQL will enable you to check and fix performance issues in the future. There are some <a href="http://www.w3schools.com/SQl/sql_intro.asp" rel="nofollow noreferrer">resources</a> <a href="http://www.webdevelopersnotes.com/tutorials/sql/index.php3" rel="nofollow noreferrer">online</a> too. And if you are using SQLite, <a href="http://www.sqlite.org/lang.html" rel="nofollow noreferrer">learn its syntax too</a>.</p> <p>The above is stuff that you will be able to reuse regardless of the web framework you end up with. Django, Rails, the next big thing... whatever.</p> <p>Study other people's data models. <a href="http://databaseanswers.org/data_models/index.htm" rel="nofollow noreferrer">Here are several different ones</a> - maybe you can find the one you are looking for (employee shifts? shift scheduling?).</p> <p>Then <a href="http://docs.djangoproject.com/en/dev/topics/db/models/" rel="nofollow noreferrer">read the basic django model documentation</a> and really understand it. What django models are doing is mapping python objects to relational database tables (ORM is the acronym; Object Relational Mapping) and <a href="http://www.agiledata.org/essays/mappingObjects.html" rel="nofollow noreferrer">this article</a> may very well help you in coming up with good designs.</p> <p><strong>Don't get discouraged.</strong> Everybody had to start somewhere.</p> <p>Hope you find all you need. Have fun with Django.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload