Deepak
?
Doragonsureiyā
can i share here screen shot
Read the rules before any activity: @PythonRules
Deepak
ok well i am using post man
Deepak
so when i choose put and click on send then it shows
Mirco
ok well i am using post man
you return the errors so the response will give you the reason
Mirco
and I suggest u to take a tutorial for DRF
Deepak
{ "name": [ "This field is required." ], "quantity": [ "This field is required." ], "cost_prices": [ "This field is required." ] }
Mirco
you are not sending those fields
Deepak
but i am following tutorial of coding with mitch.
Mirco
but i am following tutorial of coding with mitch.
2 possibilities: you are not understanding or the tutorial is so bad
Deepak
may be i am not understanding
Deepak
hmm
Deepak
ok
Mirco
hmm
change tutorial or take more time to understand
Deepak
do you have any personal suggestion for tutorials
Deepak
?
Alexey
Hello! I'm trying to implement partial_update method for ModelViewSet: path('clients/<pk>', ClientsViewSet.as_view({'patch': 'partial_update'})), class ClientsViewSet(ModelViewSet): serializer_class = ClientsSerializer queryset = Client.objects.all() pagination_class = PisPagination Yet, I'm getting 405 method not allowed while trying to acess it. get/retrieve are working fine, still. What I'm doing wrong?
Saivan
Add, edit, view delete in single HTML page is possible? If any link available pls share
Lawrence
pls, how can i fix this error
Lawrence
matching query does not exist.
Alex
matching query does not exist.
1 Read the rules 2 Provide full context of the problem 3 Share the traceback via a paste service (pastebin and etc)
xzenon
ford
Hello guys i am having trouble with django tenants. I have a value in settings called SITE_HOST_NAME which is supposed to change dynamically based on request by the user
ford
For example when the user access the site from domain example1.com the value for site_host_name becomes example1.com same for any othet domain.. What have tried Using middleware to change the settings but when i pass the value it doesn't work
ford
So any ideas on how someone would have go through this ...i found some ideas from site_id to change dynamically but that did not help much
ford
Sorry for long statement😔
Domain
Good evening guys
Domain
I'm new here, I'm facing a problem
Domain
Anytime I try to install django-allauth package in my virtualenv I keep getting an error
shruti
I have done bakcend part using django rest .now I want to deploy the backend part . My friend is making frontend I saw many youtube videos for deploying django backend .part only . But it's written deploying dja go project/app . I want to ask is deploying djano web app same as deploying only the backend part .which I wanted to deploy ??
Batman
Anytime I try to install django-allauth package in my virtualenv I keep getting an error
you'll need to post the error you're seeing for us to be able to help buddy
shruti
Yea the process for deploying django app or django rest API is same
So seeing video of deploying a django project/app would do ?
shruti
Ok
Enam_may
Hi
Enam_may
I got improper configured exception how can I fix it?
Bunty chhatri wala..
EscanOr
import io stream = io.BytesIO(content) Traceback (most recent call last): File "<console>", line 1, in <module> NameError: name 'content' is not defined
EscanOr
was foolowing django rest framwork documentation
EscanOr
Why
EscanOr
During dearialization
Domain
I'm sorry my laptop is dead, I didn't take a picture but I have the errors on stack overflow
Domain
Please can you check it out there?
Domain
Resolving pip error when installing django-allauth - Stack Overflow https://stackoverflow.com/questions/64576645/resolving-pip-error-when-installing-django-allauth
Damron
Hi! Is possible to set the M2M field list someth in .create() method?
Anonymous
Hi guys I install jango in virtualenv on ubuntu and when i run python manage.py makemigrations my_app_name Erro no install app in django my_app_name
Domain
Did you add the app to your installed apps in settings?
Anonymous
Damron
Yes i add my app name in setting
show pls how did you do it
Anonymous
Does the privilege granted for a view also handle for underlying relation or not. in database views or tables or relations
Alex
Hi! Is possible to set the M2M field list someth in .create() method?
No. Unless you create a custom objects manager with overriden create method where you place your logic. But I discourage you to do so.
Alex
No. Unless you create a custom objects manager with overriden create method where you place your logic. But I discourage you to do so.
The idea is that you have to create an object and before that you cannot assign m2m set to it which is logical.
Anonymous
Hello guys
Alex
Stop repeating your question, first.
Anonymous
I am a new to django
Anonymous
So I just wanna a help
Anonymous
That which project should I do ?
Anonymous
I mean any idea
Anonymous
Stop repeating your question, first.
okay, i will can you help me tho
Anonymous
second, what privileges do you mean?
privileges like CRUD in views of DBMS
Alex
privileges like CRUD in views of DBMS
huh? Django is shipped with built-in table-level permission system. https://docs.djangoproject.com/en/3.1/topics/auth/default/#permissions-and-authorization So you may manage groups of users with specific permissions to a table/entity.
Anonymous
huh? Django is shipped with built-in table-level permission system. https://docs.djangoproject.com/en/3.1/topics/auth/default/#permissions-and-authorization So you may manage groups of users with specific permissions to a table/entity.
okay, but in generall dtabase concept let's say if you give a rivilege to a user on students table and course table to view records and if they have a relation that takes a foreign key from both tables will the user have a permission on that relation???
Alex
okay, but in generall dtabase concept let's say if you give a rivilege to a user on students table and course table to view records and if they have a relation that takes a foreign key from both tables will the user have a permission on that relation???
Hm, if we talk about django's admin and all 3 tables are connected there, then the user could edit Students and Courses directly. BUT, you can add that 3rd table as inline to one of them and the user again will be able to edit it. If you are going to write an application with delimited permissions then you will have to check them by your self. You also may check out other 3rd-party permission packages to find out that suits you better.
Aram
Hi, I want to change Sglite to postgresql. i forgot my postgre password and i reset the password. Now when i want to run these commands it doesnt work.
Anonymous
That which project should I do ?
You can look at building a blog app. It will give you some good exposure in creating CRUD operations
EscanOr
Can I jump learning django test framework without knowing deep about djnago
mat
What is Phönix