Gomathi
Use fast2sms
Thanks Anush.
Gomathi
Use fast2sms
Already tried fast2sms library it's not work
Anonymous
How to PointFied define in lat or long json response ?? In django rest framework
Gomathi
What's the issue
In registration form , while entered mobile number will generate otp and based on the otp after that able to login. But in my case i didn't receive otp number
Bobosher
Hello everyone. We used DRF SelectItemField for some foreignkey fields in a serializer and it's causing n+1 problem (sending separate DB queries to fetch each nested object). SelectItemField doesn't support prefetch_related() and select_related(), which prevents n+1 problem. I tried nested serializers, it's working fine for GET requests. But for create operations, we only get the id of that relation. Nested serializer requires an object. I hope, you got it. Please, help.
Ali
hi, how can I add a new custom section in my admin panel containing a listview? like I give it my queryset and it lists them all there.
Robert
advise a selection of useful libraries for django
Mirco
advise a selection of useful libraries for django
Look for awesome-django on Github
.
Hello there anybody here can help me?
Sai
I using django GDAL Libra ry
Going forward python not supporting some of GDAL versions. Please look into that before move ahead
Anonymous
Going forward python not supporting some of GDAL versions. Please look into that before move ahead
Mac os in its working but want separate add lat long field like Class Geological (model.Model): Location = models.PointField() I want this format in django Rest framework Location: { lat:1.2222, long:222 },
makhmudk
Can django be used with other python modules? With PyTube for example
Charly
It must be async modules
can bw with sync modules
Roman
can bw with sync modules
I came to that conclusion when i tryed chech email in django project with sync library verify_email and django gave me errors related to not async
Roman
Maybe some not works
Charly
so you may be doing other things
makhmudk
makhmudk
Oh gotya guys
Roman
Just be careful with it
makhmudk
Okay
Dev
How can i create post wich will be created by already logged in user using foreignkey
Baqer
Hi . I have one question : My model haven't any id feature But in query.py i must use model_id to list object Are there any solution for this ??
Jerome
you can also use the native manager to query "objects" like Article.objects.(all) or whatever .objects.all() then apply filters on your query
Hakan
Hello i want refresh div in django how to ro?
Apoorva
Hi I am deploying a django web app on azure and I am facing an issue in the below line of code: output = subprocess.run ([sys.executable,externalFilePath,str(fileurl),str(filename),name],shell=False, stdout=PIPE) The above piece of code runs the file at externalFilePath and the value of print statement of the file should come in stdout. It is working properly on local but when I deploy it to azure I am not getting anything in stdout. stdout=' '. Can anyone please help out here?
Р
Try to OAuth 2. In my url.py: urlpatterns = [ path('login', views.login, name = 'login'), ] In views.py: def login(request): #return HttpResponse('<h4>LogIn page</h4>') url = 'https://login.abc.com/v2/oauth/authorize/?' parametres ={ 'a' :'response_type=code', 'b' :'redirect_uri=http%3A%2F%2Flocalhost%2Fcallback%3A8000', #http://localhost/callback:8000 'c' :'client_id=1234', 'd' :'scope=publicData', 'e' :'state=somethingunique',} return redirect(url+'&'.join(list(parametres.values())) ) As expected, authorisation server redirects back to localhost/callback:8000 with code and state parametres, but I can't understand how to process it. I allready found `urllib.parse’ library, but don't know where to use it.
tohid
What execute shell commands inside a json file with python?
Phill
Pretty new to django rest framework
S A I
Hi all I'm getting error when i give python manage.py runserver , can anyone help me
Doragonsureiyā
Hi all I'm getting error when i give python manage.py runserver , can anyone help me
Please provide a full explanation including all the details that you consider relevant. Your statement is too broad and there is no clear way to answer you, you have to explain: - what you're doing - what you're expecting - what you're using - where you're running the script - what Python version you're using - what packages and their versions you're using - and the most important thing: show the code YOU wrote (read rule 5️⃣ for that) and more details, that way your chances to get help will increase
S A I
I have just created a template-html file and trying using it from views file using render function. I'm expecting to display the info in chrome page. I installed python,django latest versions only. Error say: exception in thread django-admin-thread
S A I
Sending pictures is not allowed in the group so I pinged you privately .
Divya
Good Morning,I'm working on a Django project in which I have to click a picture and pass that image as input into another .py using views.py
Divya
I'm able to capture the picture but I'm not able to pass it
Divya
It gets downloaded and stored in downloads
Divya
Could you please help
Doragonsureiyā
Sending pictures is not allowed in the group so I pinged you privately .
Rule 5️⃣: Never post walls of text or screen photos. Use paste bins like https://linkode.org, https://nekobin.com (or your favorite one)
Jo
Could you please help
Better you pass image location (path) to backend
8 Vs 8
I need someone who can help me to make my first project
Anonymous
can any body help in django-treebeard https://stackoverflow.com/questions/70616828/django-treebeard-with-django-rest-framework
Javlonbek Torajonov
Hello
Javlonbek Torajonov
I want to create automated grading on open cv
Javlonbek Torajonov
Who is help me
Javlonbek Torajonov
What i do first
Doragonsureiyā
What i do first
Your question is not related to Django. If it's a Python related question go to @Python group, otherwise please move to @PythonOfftopic group and ask there.
Satyam
Hey . I want to implement push notification service in django . But I am unable to figure out what's the best industry standards for it .
Satyam
Any suggestions would be highly appreciate
Satyam
Yeah I have. But the issue is not about the implementation but finding a scalable implementation .
Syed
How to use seaborn in django
Syed
Anyone know this?
weezy
i want to implement multiple user types registration and login
weezy
help me out with it
weezy
what should be my approach proxy models or two diffrent models completly ?
Jerome
i want to implement multiple user types registration and login
how multiples? .. tell a bit more. Usually i think it's easier to extends the model with abstract classes & same for auth.backend. You can also deliberately create all from scratch, but if you want to stick on the ORM & admin dashboard auth, it needs extra coding. But can worth it, there's also a middleware ready for managing external users remotely
.
Hello every one
.
how can i solve this problem https://paste.ofcode.org/39GF2pM499P6CcPCDsQe4YX
Doragonsureiyā
I need someone who can help me to make my first project
Rule 🔟: Job posts are SPAM unless they meet the requirements. Read the rules for details.
Alanominator
["SOLVED"] Hello. I want to make an activation by link sended to an email. If link is clicked, an account will be actived. The link is sended to an email, but I don't know, how to write a view function. I use knox, rest framework.
Alanominator
I've been googled for several days, but there's no success.
Alanominator
Use djoser
["SOLVED"] I use it. Djoser sends an activation link email. And I want to handle request.
Kp
Hey guys I'm new to this group, I know basic python and oops ,to what roles can I apply and what is the pay