|
ATLbeer, thanks for the awesome first Django/Web experience. I haven't done much web development and basically spent most of my time working on imaging libraries and various python projects. So this is a refreshing experience and exciting since I am getting right into the action rather then learning php or brushing up my ruby skills. So thanks! Also, I am using Eclipse and PyDev(an eclipse extension for python development) and it works wonderfully with Django after you add the django site-package path. For anyone who is looking for an editor check it out pydev/eclipse is fairly advanced. I also tried dong some django work in wingIDE, but its pricey unless you go thru the free copy for open source developers process(the biggest hurdle is waiting for the snail mail).
|
# ¿ Apr 10, 2008 23:24 |
|
|
# ¿ May 3, 2024 12:13 |
|
I have a quick question regarding the subclassing of models. My code has a few models which share a decent amount of common attributes and I am wondering if making a superclass then subclassing it would work well. I heard some chatter last year about subclassing not working well with models is this still the case(maybe in 0.96)? Is inheritance broken for models?
|
# ¿ Apr 13, 2008 04:49 |
|
Can anyone recommend any talks or presentations about Django? I have already watched Web Development for Perfectionists with Deadlines(Google Tech Talk) given by Jacob Kaplan-Moss, and Snakes and Rubies. I seem to get a lot, including motivation, out of things like that.
|
# ¿ May 13, 2008 03:53 |
|
When subclassing a non-abstract model, I know I can get the subclass instance from the superclass instance but I need to know its name. How do I get around that? I am new to django and web apps, so I have a feeling I am doing this wrong, but here is a fictional examplecode:
tehk fucked around with this message at 14:11 on Nov 19, 2009 |
# ¿ Nov 19, 2009 14:07 |
|
Yay posted:As I recall, somthing like this was talked about when ORM model inheritance was first proposed and implemented. It was rejected. Something to do with CORBA (of which I know nothing), I think. code:
|
# ¿ Nov 19, 2009 23:23 |
|
|
# ¿ May 3, 2024 12:13 |
|
I also do not see why the method is not working, but you can make it a property using the property built-in if you'd like. Still the first method should work.code:
|
# ¿ Dec 20, 2009 06:50 |