Making time sheet program.

1 view
Skip to first unread message

KillaBee

unread,
Aug 25, 2008, 1:57:50 PM8/25/08
to PyWeb-IL
How do I get started making a time sheet program?
I have did the polls on the Django websie, but I can't get it to do
what I want it to.
I just need a username, radio, and number fields to go into a table.
yes I a new to this django.

daonb

unread,
Aug 26, 2008, 2:49:18 AM8/26/08
to PyWeb-IL
Start with a high level design and decide on the project name and the
apps it contains - sounds like one project and one app, but maybe
there's more. After creating the project and apps you need to define
your models. Think it through, I found that changing my project
structures and/or models is very painful.
My guess is your table will have two fields for the start and end
times, a client/project reference (need a clients/projects app?) and a
user reference. Check out http://www.djangoproject.com/documentation/model-api/
for some examples.
Next enable the admin, do a syncdb, and you can already play with your
table using the admin interface. Next you need to decide on the views
you want and the urls that will get you there. You can use the generic
views - http://www.djangoproject.com/documentation/generic_views/ - to
display your data and the ModelForm - http://www.djangoproject.com/documentation/modelforms/
- for your update views.
Goodluck,

Benny
Reply all
Reply to author
Forward
0 new messages