Please direct questions of this nature to the django-users mailing
list. This list is meant for the development of Django and not the
usage of Django. Thanks!
--
Brian Rosner
http://oebfare.com
--~--~-~--~~~---~--~~
You received this message because you are
Hi,
I'm developing a large webapp using django. One of my requirements is
that it needs to be able to handle 10,000+ different entities or
models that need to be associated with a user. A single user have
needs to be able to to associate himself with any of the existing
models and have one
Hi, Marc,
This is great news. I am glad I have not re-written all my models with
all those duplicated stuff (I am sure that wouldn't make me feel I am
following the "DRY" principle).
Is it possible to give any prediction when this great stuff will be
checked in? Thanks a lot.
Wanrong
Marc
Hi Wanrong,
Maybe you could live with something like:
class common(models.Model):
...
Meta:
create_db_schema = False
class Model_B(models.Model):
...
Meta:
> but the following, in my opinion better version, is not supported:
>
> 2) {{ foo="hello world" }} or {{ bar=77 }}
>
James correctly pointed out this is an intentional limitation.
However, if you really want to, you can do things like
{% with "hello world" as foo %}
{{ foo }}
{% endwith