101loop / drf-instamojo Goto Github PK
View Code? Open in Web Editor NEWInstamojo app for Django based on Django REST Framework
Home Page: https://drf-instamojo.readthedocs.io/
License: GNU General Public License v3.0
Instamojo app for Django based on Django REST Framework
Home Page: https://drf-instamojo.readthedocs.io/
License: GNU General Public License v3.0
TypeError at /order/paymentview1/
Got a TypeError
when calling Payment.objects.create()
. This may be because you have a writable field on the serializer class that is not a valid argument to Payment.objects.create()
. You may need to make the field read-only, or override the PaymentSerializer.create() method to handle this correctly.
Original exception was:
Traceback (most recent call last):
File "C:\Users\NIRPESH\AppData\Local\Programs\Python\Python36\lib\site-packages\rest_framework\serializers.py", line 948, in create
instance = ModelClass._default_manager.create(**validated_data)
File "C:\Users\NIRPESH\AppData\Local\Programs\Python\Python36\lib\site-packages\django\db\models\manager.py", line 82, in manager_method
return getattr(self.get_queryset(), name)(*args, **kwargs)
File "C:\Users\NIRPESH\AppData\Local\Programs\Python\Python36\lib\site-packages\django\db\models\query.py", line 422, in create
obj.save(force_insert=True, using=self.db)
File "C:\Users\NIRPESH\AppData\Local\Programs\Python\Python36\lib\site-packages\django\db\models\base.py", line 741, in save
force_update=force_update, update_fields=update_fields)
File "C:\Users\NIRPESH\AppData\Local\Programs\Python\Python36\lib\site-packages\django\db\models\base.py", line 790, in save_base
update_fields=update_fields, raw=raw, using=using,
File "C:\Users\NIRPESH\AppData\Local\Programs\Python\Python36\lib\site-packages\django\dispatch\dispatcher.py", line 175, in send
for receiver in self._live_receivers(sender)
File "C:\Users\NIRPESH\AppData\Local\Programs\Python\Python36\lib\site-packages\django\dispatch\dispatcher.py", line 175, in <listcomp>
for receiver in self._live_receivers(sender)
**File "C:\Users\NIRPESH\AppData\Local\Programs\Python\Python36\lib\site-packages\drf_instamojo\signals\handlers.py", line 35, in payment_record_handler
if payment_request_imojo.get('modified_at') > pr.modified_at:
TypeError: '>' not supported between instances of 'str' and 'datetime.datetime'**
How to use below please explain little bit.
** Create signals python directory with init.py, handlers.py in app**
why didn't you add these features in drf_instamojo ?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.