On Sunday, 7 January 2018 21:03:05 UTC, Malik Rumi wrote:
>
> --
>
> As a string that evaluates to the past ***
>
> (lifeandtimes) malikarumi@Tetuoan2:~/Projects/lifeandtimes/chronicle$ 
> python django_textract_9.py
>
> Traceback (most recent call last):
>
>  File "django_textract_9.py", line 17, in <module>
>
>    clock='04:04:04'))
>
> io.UnsupportedOperation: write
>
> ***Back to the same old error. How can it not support writing to a single 
> field when it writes to all the others? ***
> Django 1.11.5 Postgres 9.4, Psycopg2, Python 3.6.3
>


The error is nothing to do with the time field. The model create command is 
*succeeding*, as you could tell by looking at the database.

However you have wrapped this creation in a TextIOBase.write function, 
which is failing. This is because a TextIOBase is an abstract class which 
does not actually have any concept of anything to write to. What, exactly, 
are you trying to do here?
-- 
DR.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/1a12423a-d7bb-425c-9252-9af535f9de46%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to