Mehmet
but one question left, where to implement business logic, after i get request from Client, and get data from DB, where to implement all calculations?
You should stick with official/unofficial performance articles as much as possible. Have you ever used another web framework?
Nazar
no, just tested some of Java EE and .NET Core
Mehmet
no, just tested some of Java EE and .NET Core
That is cool. I have seen some sort of relevant pattern implementations with Spring Java but it is mostly against the philosophy of Django I think. You can mimic service, DAL and Repository patterns mostly right in models with the help of managers or instance method definitions.
Mehmet
As I waste time in quora, reddit etc. mediums, I can say people mostly face with extra burden of maintenance after decomposition attempts. There are successful samples but I think you should think these kind of conceptual considerations right in the point of need.
Mehmet
I cannot decide where to load business logic while using DRF because some offers to implement in serializer methods and others in view. I have used them both and have not faced any serious issue. When I face I will consider.
Anonymous
Can anyone tell me the most important Django interview questions
Anonymous
Interview is for a software developer job role
Anonymous
It would be really kind of you if you can share some imp questions
Muflone
Just remain here and help users with their questions. You'll learn the key concepts and many things about Django
Anonymous
Great 😊
Kapil
Whenever I use 'value__avg' returned by aggregate function I get error that 'dict₹ object has no attribute 'value__avg'
Kapil
*dict*
Kapil
Is there something new in django due to which this error occurred
VY.sh
Aman
How to solve module not found error in visual studio code ??
Doragonsureiyā
How to solve module not found error in visual studio code ??
Step 1: Open a browser Step 2: Write down https://google.com or https://duck.com and press Enter Step 3: In the search box write down the same words you asked here Step 4: Read the firsts results
Rangubha
Can anyone tell me how I make stock market portfolio I want to make it for my final year project web development
Pixelated
How to solve module not found error in visual studio code ??
Make sure you install it on correct env. Double check if vs is using your virtual env rather than global path
Kiran
https://www.freepik.com/
Anonymous
I am working on a webrtc project but I am getting high pitch feedback sound on the android chrome, can someone tell me what could be the case? I have put all the details here https://stackoverflow.com/questions/63779846/screeching-feedback-sound-in-node-js . any help would be highly appreciated
Aneesh
How to convert geo point location to firebase compactable field
DK
We can store geo location coordinates in firebase database
Aneesh
Bt it is a point location
Aneesh
It shows cannot convert to firestore vakue
Aneesh
Value
✙Yaroslav
Hi, I'm using rest_framework-simplyjwt in my project. Now I have a task to implement python-social-auth library for Auth via GitHub. Everything works, but not as it should. How to make the access/refresh pair return after successful authorization via githab?
Doragonsureiyā
How to convert geo point location to firebase compactable field
Step 1: Open a browser Step 2: Write down https://google.com or https://duck.com and press Enter Step 3: In the search box write down the same words you asked here Step 4: Read the firsts results
sheikh
I want to Add django migration table to django admin
sheikh
?
George
Hello everyone, Any python expert having knowledge with Django framework and Geopy module need some urgent help
Doragonsureiyā
Hello everyone, Any python expert having knowledge with Django framework and Geopy module need some urgent help
Please don't ask meta questions like: "Any user of $x here?" "Anyone used technology $y?" "Hello I need help on $z" Just ask about your problem directly! With a very high amount of people here the probability that someone will help is pretty high. Also please read: http://catb.org/~esr/faqs/smart-questions.html
Anonymous
FieldError at /account/reset_password/ Cannot resolve keyword 'is_active' into field. Choices are: active, admin, email, first_name, id, last_login, last_name, logentry, password, phone, profile, staff
Anonymous
I have created custom user model
Anonymous
kindly help me
Anonymous
when you will create your own custom user model this property is used to set an user Active
Intrepid
Hi, want to make Django project on Cloud, please guide me.. . Where can i learn cloud for free
Prateek
when you will create your own custom user model this property is used to set an user Active
Ya i know , but I guess you have to write user.is_active = True
Prateek
Hello everyone, I am trying to wrap HTML part in RSS feed ,it is giving error
Prateek
Can anyone tell how to wrap HTML in django rss , i tried everything searced everywhere but didn't found any solution
Kapil
I have a table in which one column is of rating and one table is of ids. I have to get the average of rating for every id in the table. What query set will be used i this situation. In output I want average rating as well as the id.
Pam
Hey , do you know how to store data in sqlite3 database using request library which is fetched using restapi ?
Pam
Anyone knows how to store data in database using request library in django?
Pam
i don't find any of them useful.
Anonymous
How to convert { "issue":<issues:issues object (2)>} Into {"Issues":2}
Anonymous
Anyone any have ideas?
Anonymous
Not it's working
Anonymous
use str method in model
Can you send me screenshot
Anonymous
Query
محمد دلشاد
Query
not actually query Hastebin your issues model and i will tell you there
Kapil
didn't got your question
I have many columns in a table in which one is of teacher id and one is of rating given by students to the answers provide d by a teacher id. Now I want to take average of rating for a particular teacher id and in the json output i want teacher id and it's respective rating average value
محمد دلشاد
go with model method create a method filter and find avg
Kapil
go with model method create a method filter and find avg
i got average with code something like this, i don't remember it exactly model.objects.filter(teacher_id__gt=0). aggregate (Avg('value')) but with this i want her respective teacher id also
Kapil
it will take lot of time my laptop and internet both are slow😣
Kapil
can you suggest something 😅 I will try to look up for that
محمد دلشاد
ok i am sharing a code you go through it maybe this will help u
محمد دلشاد
can you suggest something 😅 I will try to look up for that
have a look at this https://hastebin.com/bawobapocu.py
Kapil
have a look at this https://hastebin.com/bawobapocu.py
I think this will give only the ranking
محمد دلشاد
I think this will give only the ranking
no it will give the id too if you write {{teacher.id}}
محمد دلشاد
also withon for loop
Kapil
but can i get teacher id with it's respective average value together
محمد دلشاد
go and give it a try first then ask the rest
Kapil
{ teacher_id:1, avg_rating:3.5 } like this
محمد دلشاد
yes man you can
محمد دلشاد
are you using DRF??
Kapil
yes
محمد دلشاد
then i haven't worked with property methods but that should work there look for DRF and property methods in model for some resources