Med
my views
Med
share models and views code
class UserView(generics.ListCreateAPIView):
queryset = Myuser.objects.all()
serializer_class = MyuserSerializer
class UserEdit (generics.RetrieveUpdateDestroyAPIView):
queryset = Myuser.objects.all()
serializer_class = MyuserSerializer
Neeraj
Bekbolsun
Does django modelviewset save files by default on post request if there is a filefield on models or should i handle it somehow on views?
prabhat b
hello guys
prabhat b
i have a model in deep learning image classifer how can i add this model to my android model
Lucky
Is there any option to give multiple modles in multiple modles
Happy days
How to add UPI option in django like gpay, phonepay and etc.
Tan
it is auto
Tan
try use
https://www.django-rest-framework.org
༒ROHIT
ky
During database creating give error in mysql
ky
MariaDB [(none)]> CREATE DATABASE target;
ERROR 1044 (42000): Access denied for user 'root'@'localhost' to database 'target'
MariaDB [(none)]>
ky
how to solve
Mubassher
How to use MongoDB with Django??
Please, Ans me
Shabbir
I am using docx for word document reading...when i print the text it mess up the styles....any idea how can i read read docs properly in python and django
Hoper
ValueError: The 'image' attribute has no file associated with it.
Hoper
any solution for this error
Mirco
the error is clear, no file is associated with that ImageField
Pravalli
I got the error in the django while I am trying to print the hello world
Import error:attempted relative import with no known parent package
Happy days
U mean multiple payment integration?
Yes.
But if you have any separate payment method, it also fine to me.
If you have the method for gpay or phonepay, its great to me. I am looking forward for it.
Ulug'bek | Python Developer
Hi friends . Who know add new extra field to User model django rest framework
Vikash
1)using abstract base user
2) one to one field
3) using abstract
ADITYA
Hi all
ADITYA
I have a problem in edit section in crud operation
ADITYA
I want to edit the object in same page instead of next page . How can I do this
ADITYA
Please help me for this
Vikash
ADITYA
Ulug'bek | Python Developer
What kind of issue occurred
UserSerializer don't recognize Abctract user field(username, first_name ....)
Ulug'bek | Python Developer
Vikash
Have you configuration your custom user into setting.py file
Ulug'bek | Python Developer
Enes
Hi, in Django Rest Framework I want to create a token when user logged in but when I am looking at to the documentation I see just views.obtain_auth_key used in urls. And this url is not work at get it is raise 405 but if you give username and password with POST method it is obtaining
Enes
but giving post method is not healthy and logically
Enes
because I could give POST method from postman
Enes
and the obtainauth key method comes from drf.views
Enes
any solution guys? I visit all web articles about that
Kirill
how to build 'queryset' using 'unnest' and 'array_agg'? ERROR: You might be able to move the set-returning function into a LATERAL FROM item.
Vikash
Enes
I didn't see anything about simple jwt
Vikash
use jwt token in your rest api
Enes
but in our office my team did that without jwt before
Vikash
i use jwt in one of my sample project
Enes
It is ok to solve with using jwt but need to be natural way of Django Rest Framework
Enes
I could use knox or jwt but I need to use the ObtainAuthKey or obtain_aouyj_key
Sepehr
Hi I have one fucking bug
Sepehr
Can you help me?
Pravalli
parandhamudu
Share me error
parandhamudu
Pictures
Happy days
How to render the other app's HTML page?
😒😒
Does anyone know how can I use filter tags to filter queries in templates
Sarthak
How to take screen shot and share it on social media using django any idea guys ?
😒😒
Gosh
😒😒
Harry gorilla
What will happen if i expose my secrete key under django settings? I am seeing something like git guardian and it's busy telling me that i have exposed my secrete key to the public.
Mirco
Harry gorilla
I did not put that secrete key there though. I think it was autogenerated when i was putting my project to github
Harry gorilla
bad things
So to remove the secrete key, i'll have to delete it manually from github?
Mirco
Anonymous
Mirco
Harry gorilla
https://djangocentral.com/environment-variables-in-django/
I have found this too
tech_ssk
Please any one suggest me a best YouTube channel for learning django from scratch ?
Ricardo
I have a question I am working with files it saves them but when I want to see them it sends me a 404 when the URL is correct
Mika
Slash at the end could be the error
Enes
Hey I figured out something and it interested me when I try to inject a field to a model it is accepting bu Django why and how?
dj shell
from .models import Writer
wrtr = Writer.objects.create(name='abc')
wrtr.save()
wrtr.no_fielddd = 'accpeting that'
wrtr.save()
wrtr.no_fielddd
>>> 'accepting that'
Enes
but I don't have a field named no_fielddd
Д