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
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
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
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
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 :)
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 :)
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,
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
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
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
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
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
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
13 matches
Mail list logo