I often got confused because when a modification in my models.py causes
it to raise an ImportError (for example you try to import a non-existing
module from your module.py), then several parts of Django (including
syncdb) simply act as if your application wasn't installed, without any
warning.
May
"""
Can somebody explain why this testcase fails? It looks as if the
attribute 'a' passed to the E instance just gets ignored.
I guess that it has to do with the fact that E inherits Model more than
once.
>>> i1 = D(a='D')
>>> i1.a
'D'
>>> i2 = E(a='E')
>>> i2.a
'E'
The failure is::
On 14.07.2009 17:23, Alex Gaynor wrote:
> This looks like an instance of this:
> http://code.djangoproject.com/ticket/10808 bug.
Thanks, Alex. I applied patch 10808.diff and now it works.
Luc
--~--~-~--~~~---~--~~
You received this message because you are subscri
On 16.04.2009 0:04, Daniel Joshua Worth wrote:
> I'm trying to learn unit test and have a unit test for a model in
> test.py and have a test set up to fail.
> When I run manage.py test it returns that all tests are OK.
> If I run manage.py test it returns OK.
> If I run manage.py test . it return
Hello,
when I run ``manage.py test`` to test my Django applications, then I
also get a lot of test failures for django.contrib.auth. Most of them
are TemplateDoesNotExist errors (complete log see below). This even
happens in a virgin project:
1. Run ``django-admin startproject foo``
2. Edit oen
On 13.05.2009 18:55, Michael wrote:
> Auth leans on some templates in django.contrib.admin for the tests. This
> is known, though not ideal. If you added django.contrib.admin to your
> installed apps, the failures should go away.
>
> I hope that helps,
> Michael
Thanks! That helped.
And I disco
ost to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~--~~~----~--~~--~--~---
""&quo
On 4.06.2009 19:46, Karen Tracey wrote:
> Well the problems the test reveal with the in-memory Journal instance
> having a stale lastnum after documents are deleted is a bit of a gotcha
> with they way you have set this up. Though it's easily fixed in the
> test, I fear actual code that uses thes
On 5.06.2009 4:39, Karen Tracey wrote:
> My first thought would be to not store that value in a model at all, but
> rather pull it from the DB as max of the appropriate column when needed.
Yes, that would make things easier and more straightforward.
But some features that are easy with my setup
On 13.06.2009 21:19, Luc Saffre wrote:
> Can somebody explain what's going wrong there?
Okay, I now looked into Django's code and understood a few things:
I imagined that Django finds out the models of a project by looking into
the "models" module of each ap
On 18.06.2009 14:05, Ramiro Morales wrote:
>
> Why do you thing there should be a automatically created one to one
> relationship from Customer to Contact named "contact"?.
Why I think there should be a automatic one-to-one relation from
Customer to Contact? Because that's what the MTI documenta
I had now a similar problem and started to write a generic solution
which is certainly not perfect, but works for me. Here is a detailed
description:
http://lino.saffre-rumma.net/autodoc/lino.test_apps.1.html
Looking forward to any comments.
Luc
On 7.11.2010 17:19, ringemup wrote:
> Thank you f
Hi Muhammad,
we do write and maintain desktop applications for our customers using
Django. But before feeling able to offer this we wrote Lino, a kind of
"intrusive" Django application which replaces the Admin by a new
desktop-like user interface (currently based on ExtJS). It also replaces
the pe
13 matches
Mail list logo