Nayan
Ok let me try this
Nayan
At thr very last line i do have to return right ?
Nikolay
Ok let me try this
edit it again)
Nayan
I don't have to use return ?
Ghorz
Hi guys, Im Mimi and I'm new here. I am currently developing system that used django-viewflow pro as the engine for workflow. Does anybody here familiar with django viewflow? I need some help 😄
If you want a workflow system. Django is the wrong choice. Why don't you use Frappe. It will make your work easy. May may not even write a single line of code to get your workflow up and running.
Nayan
You should)
Still getting the same error
Nikolay
could you show me your view?
Nayan
Hoe can i show media is not allowed in this group
Nayan
dpaste.org
Dpaste.org/07Xf
Nayan
Do you want me to paste my whole class view ?
Nikolay
Nikolay
https://dpaste.org/Kpdz#L6
forget to close parentheses
Nayan
One question but i am getting the url link - 127.0.0.1:8001/testResults/192920083 Why do i still get error . Also after doing changes as how you mention i am still getting same error - got an unexpected keyword argument serial number
Nayan
Do you want to me to paste comple class based view code ?
Nayan
Ok let me edit the view and paste my code
Nikolay
Hi the comple code is here - dpaste.org/od43
https://dpaste.org/GeJg#L10 try this
Nikolay
https://dpaste.org/GeJg#L10 try this
or this https://dpaste.org/feuO#L10,5
Nayan
May be i will paste error for you
Nikolay
May be i will paste error for you
yes) and could you share urls.py
Nayan
yes) and could you share urls.py
Yes let me share this with you
Nayan
Please have a look i have share the error as well as url.py
Nikolay
Please have a look i have share the error as well as url.py
I haven't use old django versions with urls, I'm usthing path, so I can miss something, but you can try this: url(r'testResults2/(?P<Part_SerialNumber>\w+)/$', login_required(views_class.TestResult2TableView.as_view()), name='testResults2'), and in the view: serialnumber = self.kwargs.get('Part_SerialNumber')
Nayan
I do have written print('¥¥¥¥') something like this in get_queryset But it is not printing that also ... Is it something it is not calling get_queryset
Nayan
Same error
Nikolay
Same error
could you for testing replace url with this: url(r'^testResults2/test/$', views_class.TestResult2TableView.as_view(), name='testResults2'), and try to print something in view (first string in get_queryset), to know where the problem is
Ninja
Same error
Wht type of error it is
Nikolay
Wht type of error it is
https://dpaste.org/G4Xx
Nikolay
def get_queryset(self, **kwargs): print("I'm inside the view!!!")
Nikolay
now try to step by step return old version of path to see where it'll break, start from login required
Nikolay
Yes it print this
django version doesn't support path, url only?)
Ninja
I think there is mistake of case in view mode..
Nayan
django version doesn't support path, url only?)
It support by other url links are working
Nikolay
Didn't get you what exactly i have to try?
url(r'^testResults2/test/$', login_required(views_class.TestResult2TableView.as_view()), name='testResults2'),
Nayan
Test/ doest work , it looks for url matching
Ninja
What mistake?
Check view.py and check spelling in function which have been created queryset....inside it check the naming and parameters are valid or not ...i am 90% sure uh made error there
Nikolay
It works after removing / after test
remove it =) url(r'^testResults2/(?P<test>\w+)$', login_required(views_class.TestResult2TableView.as_view()), name='testResults2'),
Nayan
Ok
Ganesh
For posting a data to the user. It is storing in the database. I want to show the data in front-end also
Ganesh
How to show
Nikolay
Ok
Does it work?
Nayan
Same error unexpected keyword argument
Nikolay
Same error unexpected keyword argument
did it print "I'm inside the view!!!"?
Nikolay
from django.urls import path path('testResults2/<slug:test>', login_required(views_class.TestResult2TableView.as_view()), name='testResults2'),
Nayan
Do i need to define slug in model?
Nikolay
Same error
I give up :(
Amir
Hi, everyone ✌️. I want to create a website on Django, where can I start to learn it?
Nikolay
or https://developer.mozilla.org/en-US/docs/Learn/Server-side/Django
Nayan
I give up :(
Thank you for your time