optionally (Invoice Address) and to
one class it is required (Residence Address). Base class is Address.)
Thanks in advance.
Jan Ostrochovsky
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users&quo
Tredinnick
wrote:
> On Thu, 2009-08-06 at 07:15 -0700, Jan Ostrochovsky wrote:
> > Hello,
>
> >http://docs.djangoproject.com/en/dev/topics/db/models/#multi-table-in...
> > says:
> > The inheritance relationship introduces links between the child model
>
question is: is there some existing solution for this (in Django
or its extensions), which we can use, and not reinvent it, or not? Any
idea?
(We are using Django Evolution, which is good help, but only when
changes are not too dramatic.)
Thanks in advance.
Jan Ostrochovsky
r chain of init_sample_data() functions:
>
> $ python manage.py shell
>
> >>> import myproject.myapp.models as m
> >>> m.run_data_inits()
> >>> ^D
>
> Bill
>
> On Thu, Aug 20, 2009 at 9:25 AM, Jan Ostrochovsky <
>
> jan.ostrochov...
Hello,
class Document(models.Model):
...
class AccountingDocument(Document):
...
How am I able to access methods an attributes of some
AccountingDocument instance (e.g. its __unicode__()) from Document
instance? How am I able to retrieve child object from its parent?
I tried to search on t
Hi Tracy,
less than two months ago, we were trying to use MySQL in our Django
project (because we were not successful with installation of
PostgreSQL adapter for Python psycopg2 on Mac OS X).
We had similar problems as you have, and ugly, but only found,
solution was to add encode (or decode? I
I won't compare PostgreSQL and MySQL as whole, because:
- I do not know MySQL so well, as PostgreSQL
- another flamewar could arise ;)
I am only saying: my experience with Django+PostgreSQL is far better,
than Django+MySQL, see
http://groups.google.com/group/django-users/browse_thread/thread/3abf
How exactly did you put your database user? What is content of your
pg_hba.conf?
Maybe some parts of this could be helpful:
http://sharpe-s-postgres.blogspot.com/2009/09/how-to-install-and-configure-postgresql.html/
On Sep 7, 11:15 pm, Zico wrote:
> On Tue, Sep 8, 2009 at 3:06 AM, Angel Cruz wr
Hi Simon,
I had also problems with psycopg2 on Mac OS X. First with development
server (python manage.py runserver), and when solved, later also with
Apache.
Finally I decided for Linux on production server (with Apache), and
let Mac OS X on development workstations (with runserver).
If such se
+ self.id_
But I'd prefer solution, where Document class does not know about its
child classes (AccountingDocument, etc.). Any idea?
On Sep 8, 8:31 am, Jan Ostrochovsky
wrote:
> Hello,
>
> class Document(models.Model):
> ...
>
> class AccountingDocument(Document):
&g
t; sub = getattr(self, field, None)
> return sub.__unicode__()
> except ObjectDoesNotExist:
> pass
>
> return u'Document {0}'.format(self.id)
>
> On Sep 8, 9:01 am, Jan Ostrochovsky
> wrote:
>
&g
ion to another version, it
is unthinkable to put production data in the code ;).
But when developing application (currently my case), there is only
relatively small set of sample testing data, and I see as big avantage
and developer's comfort, to be able modify sample data accordingly
wi
Hello,
I have the exact need, as author of this question:
http://stackoverflow.com/questions/454436/unique-fields-that-allow-nulls-in-django.
I want a value to be unique, if it is not NULL. Database backend
allows such construction, but in Django admin I have got this error
message when saving f
parameter
defined and in that case it must be unique, or it is not defined at
all.
On Sep 9, 4:35 pm, Karen Tracey wrote:
> On Wed, Sep 9, 2009 at 9:14 AM, Jan Ostrochovsky
> > wrote:
>
> > Hello,
>
> > I have the exact need, as author of this question:
>
> >http:
Hello,
are there some calculators or best practises or other tools/methods,
how to size server hardware for Django applications from assumed load
(concurrent users, etc.)?
Thanks in advance for any advice.
Jano
--~--~-~--~~~---~--~~
You received this message beca
15 matches
Mail list logo