apollo13: how? I thought the pk was automatic in the model...I have class AccountType(models.Model): name = models.CharField(max_length="25")
def __unicode__(self): return self.name
aberrant joined the channel
R_Macy has quit
smoothbutta has quit
cardboard joined the channel
JDShu
and the complement, so a Shelf has many Books, I want to get the Shelves that have Books
CarlFK has quit
nedbat_ joined the channel
glauber_guima joined the channel
snurfery joined the channel
nedbat has quit
maugzoide has quit
nicholasserra joined the channel
anon_555 has quit
maugzoide joined the channel
ganitsu1 joined the channel
ganitsu has quit
msc joined the channel
asmund joined the channel
dman777_alter
apollo13: here is a list of the columns from both Request and AccountType http://bpaste.net/show/K90ZL8iL0Nj1srJWSUOB/. I dion't see a id field for ether one so I am a little confused about a id needing to be there
asmund
It does not seem practical, when using generic class based views, to have one view per model, like is common rails' controllers. Is there a different design style that is more "right" for django, or am I missing something?
Bozza joined the channel
it seems verbose and bloated with a CreateView, a DetailView, an EditView, etc. PER MODEL
Bozza
guys sorry to be direct .... but "i need the freaking code"
cardboard has quit
dman777_alter
apollo13: oh wait...I think I see
Bozza
anybody got any good video tutorials on how to get started?
setting up django , and getting going seems to be a bit overwhelming for someone new to coding
jeffheard has quit
Rodr1c joined the channel
dman777_alter
apollo13: in the shell there is a In [38]: requests[0].account_type_id; Out[38]: 3