Re: Django Blocking/ Background Jobs

2007-07-23 Thread Norjee
Apart from twisten there are other libraries which offer remoting for python: spyro: http://lsc.fie.umich.mx/~sadit/spyro/spyro.html pyro: http://pyro.sourceforge.net/manual/PyroManual.html If i remember well there is atleast one more, i forgot the name of that project. I'm affraid there is no

Re: DRY violation

2007-07-11 Thread Norjee
Use the events framework. I'm sure there is a pre-save event. Use it to execute one (DRY) method and attach it to all your models. I personally would just write a custom method (your custom attach_user_to_model), which I'd call in all the save methods of the models.. But I guess attaching

Re: Can we make one of these for Django?

2007-05-18 Thread Norjee
I certainly hope not. So sad not to compete on the "merits" but by simple populism. But then again it isn't entirely fair to judge rails by its fanboys ;) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django

Django models to SqlAlchemy models | preliminary implementation

2007-04-09 Thread Norjee
Quite often there has been talk about using SqlALchemy in Django, but as far as I'm aware there is no implementation yet. For me, replacing Django's model is definitely too ambitious, so I tried the next best thing, use Django's model declaration to create a SqlAlchemy binding. For most of the

Re: Django models, detect whether value comes from db, or has explicitly been supplied.

2007-03-15 Thread Norjee
I now sort of do what you proposed. I override the init. But for the attributes that I want to keep track of I create create a property. Then it's a matter of counting how often it has been accessed. Now I just need inherit from both Model and DateTimeFieldHelper :)

Re: Django models, detect whether value comes from db, or has explicitly been supplied.

2007-03-15 Thread Norjee
I now sort of do what you proposed. I override the init. But for the attributes that I want to keep track of I create create a property. Then it's a matter of counting how often it has been accessed. Now I just need inherit from both Model and DateTimeFieldHelper :)

Re: Django models, detect whether value comes from db, or has explicitly been supplied.

2007-03-14 Thread Norjee
Thanks, I was hoping I was overlooking some Django internals, but apparently not ;) I'll just stick to using two queries. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group,

Django models, detect whether value comes from db, or has explicitly been supplied.

2007-03-14 Thread Norjee
Imagine the following model: class Article(models.Model): title = models.IntegerField() Then when you do case 1): art = Article.objects.get(pk=1) art.title = "New title" art.save() or case 2): art = Article.objects.get(pk=1) art.save() Is there a way that the model, before saving, knows

Re: How about a real django installer?

2006-11-14 Thread Norjee
Every now and then the question for a really easy installer pops up again (not only related to Django), and every time i fail to see the importance. If you are using a framework the actual installation makes up an infinite small portion of the entire development process.. Who cares wheter you

Re: What IDE do you use? (semi-OT)

2006-10-13 Thread Norjee
Rob Hudson schreef: > Should Django look at creating something like what RadRails is for RoR? > http://www.radrails.org/ > > It's built on top of Eclipse. The screencasts look pretty cool. > > -Rob Imho it would be a waste of ressourceries better spend on Django itself. As you can already see

Re: Why I'm giving up on Django

2006-09-30 Thread Norjee
Well.. let me add to this discussion as well :) 1) Loading 'static' templates is, imho, easily achieved. I wanted to lad them from the file system, but ended up putting static views in the database (using a custom, 15 lines of code template loader and a filter). The most astounding feature is

Reversed url lookup.

2006-08-26 Thread Norjee
Apparently in the current trunk reversed urllookup is kind of(!!) working. After toying with it a little bit I found one issue: The main method, reverse, only returns the resulting matched url. Not the rule (the regex and extra arguments) it matched. There is no reliable way of knowing which

Re: suitability of django

2005-12-06 Thread Norjee
Currently I'm working with rails. The main reason was that when i compared both Django and Rails (a few months back) Rails was more mature in that it's documentation was much better, while Django had not much documentation, and no filters, or middelware as Django calls it. The documentation is