Hmm, when I remove the raise CommandError statement and replace it with
self.stdout.write, everything works well.
This helps me to point further studies. Thx!
On Wednesday, May 10, 2023 at 2:33:18 PM UTC+2 Bob Aalsma wrote:
> Ah, yes, thanks.
>
> I hesitate to comment on "If I understood the err
Ah, yes, thanks.
I hesitate to comment on "If I understood the error right." ;)
Umm, my problem here is that I think I'm using the exact same *code*
"manually" without errors.
I think I'm also using the same *values* for the manual and test runs.
So I don't understand the reason for the differe
If I understood the error right.
On Wed, May 10, 2023 at 5:47 PM Vishesh Mangla
wrote:
> Probably this would help:
> https://stackoverflow.com/questions/8609192/what-is-the-difference-between-null-true-and-blank-true-in-django
>
> On Wed, May 10, 2023 at 5:45 PM 'Bob Aalsma' via Django users <
>
Probably this would help:
https://stackoverflow.com/questions/8609192/what-is-the-difference-between-null-true-and-blank-true-in-django
On Wed, May 10, 2023 at 5:45 PM 'Bob Aalsma' via Django users <
django-users@googlegroups.com> wrote:
> Sorry Vishesh, thanks for the quick answer but I have no
Sorry Vishesh, thanks for the quick answer but I have no idea what you mean.
On Wednesday, May 10, 2023 at 2:00:51 PM UTC+2 Vishesh Mangla wrote:
> False or True check for yourself.
>
> On Wed, 10 May, 2023, 17:29 Vishesh Mangla, wrote:
>
>> It looks like you are passing a null but null=False is
False or True check for yourself.
On Wed, 10 May, 2023, 17:29 Vishesh Mangla,
wrote:
> It looks like you are passing a null but null=False is not set
>
> On Wed, 10 May, 2023, 17:27 'Bob Aalsma' via Django users, <
> django-users@googlegroups.com> wrote:
>
>> I'm trying to test a django-admin co
It looks like you are passing a null but null=False is not set
On Wed, 10 May, 2023, 17:27 'Bob Aalsma' via Django users, <
django-users@googlegroups.com> wrote:
> I'm trying to test a django-admin command and don't understand why the
> tests give errors on the code while the code works as expect
I'm trying to test a django-admin command and don't understand why the
tests give errors on the code while the code works as expected.
I'm under the impression that the *raise CommandError* is ignored by the
test, but don't understand why this would be.
Please help.
Running the code shows:
(.
8 matches
Mail list logo