bug in bulk_create

2020-08-04 Thread nima salemahim
Traceback (most recent call last): File "/usr/lib/python3.7/code.py", line 90, in runcode exec(code, self.locals) File "", line 1, in File "/home/nima/.virtualenvs/behtarino/lib/python3.7/site-packages/django/db/models/fields/related_descriptor

bug bulk_create

2020-08-04 Thread nima salemahim
Traceback (most recent call last): File "/usr/lib/python3.7/code.py", line 90, in runcode exec(code, self.locals) File "", line 1, in File "/home/nima/.virtualenvs/behtarino/lib/python3.7/site-packages/django/db/models/fields/related_descriptor

Re: Udemy Clone

2020-08-04 Thread nima salemahim
i am backend developer of an organization and faced to this problem i have an OrderdModel class (DealCategory) and i wanted to make my (Deal) model also OrderdModel so i tried this way and faced this problem while adding a deal to dealcategory i am not share that it is django problem or

Raise concurrent.futures._base.CancelledError when i test django channels websocket

2019-06-11 Thread nima
/dist-packages/channels/utils.py", line 52, in await_many_dispatch await dispatch(result) File "/usr/local/lib/python3.5/dist-packages/channels/consumer.py", line 73, in dispatch await handler(message) File "/usr/local/lib/python3.5/dist-packages/channels/generic/webs

how to make a datatime filed model without timestamp?

2011-02-05 Thread Nima Gaemi
hello, i am using Djano 1.3 rev.15387 and i made a field 'last_updated=models.DateTimeField(auto_now=True)' when i wanted to get the data out of the database i wanted to get a delta with datetime module of python but i was warned that my datetime.datetime.now() object was not timezone aware.so i