inchidi
Павел
Pycharm
inchidi
Pycharm
you can try override post() in your view class, pycharm will show an icon next to line number of that function you made
inchidi
you can click that icon, then you'll see which post() used if you dont override it
inchidi
or both?
btw wont be both. except the function call super().post(...)
Shubham
how to create multi-type user (student, teacher, admin) login, sign-up in Django REST, means the number of apps , Im thinking to create 3 apps, 1 is an account, 2nd student, 3rd teacher , how can I do that, the sign up form for teacher and student will be diferent, I just want to write API?
Shubham
Hello is there any1
Shubham
?
Mirco
how to create multi-type user (student, teacher, admin) login, sign-up in Django REST, means the number of apps , Im thinking to create 3 apps, 1 is an account, 2nd student, 3rd teacher , how can I do that, the sign up form for teacher and student will be diferent, I just want to write API?
Have a read here
Shubham
Have a read here
Ya I went through it, but I'm not getting in DRF 😢,,here they have used 2 forms in Django pure
Shubham
How many apps do I require ?
Shubham
Account , user type 1, user type 2?
Shubham
3?
Mirco
Shubham
Shubham
I have created 3 apps, 1 account , 2nd student ,3rd teacher
Shubham
Is it okay?🎂
Mirco
Mirco
Read better those articles and try to understand 😃
Shubham
Because I will be hav 2 different
Shubham
Forms
Shubham
Harry
hi any one worked on drf jwt i tried to implement it with custom backend. having some issues in middleware
Anonymous
Rodion
Hi guys, who can advice me any online free courses for python with exercises?
Python
In hindi
Python
Or English
Rodion
english
Python
Search on YouTube you will satisfy result ........best content of python available on YouTube
Python
Get***
cj
Anders (izzno / gooood) 🇳🇴
Someone please! how do I make an <input> stick to the bottom of a div/col ?
Anders (izzno / gooood) 🇳🇴
Hours at this...
Luis
Hi! I'm using reverse function into a view to make a redirection.
In my URL I set:
backoffice/(?P<barcode>[0-9]+)/detail$
How can I pass that "barcode" from reverse function?
Mirco
Luis
I readed here https://docs.djangoproject.com/en/1.11/ref/urlresolvers/#reverse but have not luck
Anders (izzno / gooood) 🇳🇴
Anders (izzno / gooood) 🇳🇴
I can always add a div inside...
Anders (izzno / gooood) 🇳🇴
felx
Mirco
I write in your private chat, we are OT
Anders (izzno / gooood) 🇳🇴
👍
Anders (izzno / gooood) 🇳🇴
Luis
Sure!
Luis
Luis
👍
I found the error! I was passing kwargs to redirect (it must be passed to reverse) hahahaha
Anonymous
hello guys :)
Mirco
Hi 😃
Anonymous
I'm a complete noob with coding
Anonymous
Hii guys.. Any one have done any quiz app ?? I would like to integrate it with my project.
Anonymous
I'm working on online learning management system.
Anonymous
Any one have done quiz app.. Plzz check
Mirco
Anonymous
Anonymous
But my requirement is, i need to select multiple choices.
Anonymous
I have created three models,
Question, choice and answer.
Code9
Code9
You should use foreign keys to link up question and choices (Please read the tutorial)
Anonymous
Mehul
what type of database i should use in django..??? MongoDB, mysql or sqlite3..? simple one..?
Anonymous
How to link multiple answers ?? According to my requirements one question may contains two or three correct answers.
Code9
Code9
well
Code9
if you are to implement your own widget, that's related to front end then
Code9
and in the back end, you shoud be iterating through
Question.answers_set.all()
and check if they passed the requirement
Anonymous
Anonymous
Let me check
Anonymous
Thank youu
Anonymous
Do need to make use manytomany field ??
Code9
depending on your settings, you may use that
Anonymous
Mirco
Premraj
Hi all... when does the is_valid method return true for a form ?
Mirco
Premraj
Valid in the sense ..that their data type matches the data-type declared in the definition of the form class ?
Code9
Premraj
This would suffice to make it valid right ? And are the additional validation criteria(if conditions and other logic) written inside clean() or we can redefine is_valid ?
Mirco
Premraj