Deepak
?
Doragonsureiyā
Deepak
ok well i am using post man
Deepak
so when i choose put and click on send then it shows
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
Mirco
you are not sending those fields
Deepak
but i am following tutorial of coding with mitch.
Deepak
may be i am not understanding
Mirco
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
Mirco
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
Batman
shruti
Batman
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
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
Damron
Domain
Did you add the app to your installed apps in settings?
Domain
Anonymous
Anonymous
Damron
Anonymous
Does the privilege granted for a view also handle for underlying relation or not. in database views or tables or relations
Alex
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
Alex
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
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.
EscanOr
Can I jump learning django test framework without knowing deep about djnago
cj
Anonymous
mat
What is Phönix