Re: Django Development Process

2009-01-11 Thread AlexiPoliski
I re-read the group intro spiel and reposted this in 'django users', my apologies. Please let me know if I should remove this one here. -Alex --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group.

Django Development Process

2009-01-11 Thread AlexiPoliski
This is a call for opinion based on experience :) I'm in the process of creating the models for my very first Django application in my very first project. I have read the book up to and including chapter 7 (everything i need to know to get started). Naturally I have the design of the system I wa

Re: Feature request: get_form

2009-01-11 Thread issya
Thanks for the replies. Couldn't there be any way to do this without using a get_form function? I found a tutorial on James's blog (http:// www.b-list.org/weblog/2006/jun/07/django-tips-write-better-template-tags/) and it uses something like {% get_latest comments.Comment 5 as recent_comments %} t

Re: Order of models metaclass __new__ dict

2009-01-11 Thread Alex Koshelev
I can write a short overview: Each model field(or form field) is marked by special counter while model(or form) is loading. Then in metaclass fields are sorted by that counter. I've recently written the blog post about this staff but its in Russian language. Overwise you can look at code snipp

Re: Feature request: get_form

2009-01-11 Thread Alex Gaynor
On Sun, Jan 11, 2009 at 3:06 PM, issya wrote: > > Would it be possible to get a feature added that is like > django.db.models.get_model? With the get_model function you can use it > in a template tag and get a model out of it. I am sure you already > know this though. :) But it would be great to

Re: Feature request: get_form

2009-01-11 Thread Malcolm Tredinnick
On Sun, 2009-01-11 at 13:06 -0800, issya wrote: > Would it be possible to get a feature added that is like > django.db.models.get_model? With the get_model function you can use it > in a template tag and get a model out of it. I am sure you already > know this though. :) But it would be great to b

Re: Order of models metaclass __new__ dict

2009-01-11 Thread Honza Král
Hi, look into django/db/models/fields/__init__.py and search for 'creation_counter' Honza Král E-Mail: honza.k...@gmail.com ICQ#: 107471613 Phone: +420 606 678585 On Sun, Jan 11, 2009 at 10:19 PM, dauerbaustelle wrote: > > Hi there, > > I'm writing some python stuff using metaclasses. I

Order of models metaclass __new__ dict

2009-01-11 Thread dauerbaustelle
Hi there, I'm writing some python stuff using metaclasses. I use declarative syntax like django's db.models.Model and the dict is catched by some metaclass __init__ method. My Problem is, that, unfortunately, the order of the variables I get is not the same as the order the variables I set: clas

Feature request: get_form

2009-01-11 Thread issya
Would it be possible to get a feature added that is like django.db.models.get_model? With the get_model function you can use it in a template tag and get a model out of it. I am sure you already know this though. :) But it would be great to be able to do the same thing with a form. --~--~-