Literary
do anyone know how to integrate subscription based paypal method in rest framework
Nayan
It means that you do not need to change the context, but override the post and get methods
What i want to achieve is i have a form which i want to check in post method were it is valid or not If valid i need to insert the record in database and redirect to other url If form is not valid Show model form with error also i need to add extra context over here ( i need old context as well as newly added context over here )
Sanjarbek
Hello. it gives an error if I add a file to the database from the admin panel.
Sanjarbek
https://dpaste.org/nwVr #error Page not found
Nayan
https://dpaste.org/4d1W something like this, this is pseudocode, check if it is correct
Also it has type error get_context_data() missing 1 required poaitional argument 'request'
Ayush
ValueError at / The view enroll.views.add_show did not return an HttpResponse object.It returned None instead.
Ayush
Plz help me guys
Emre
Hello everybody, How can i manage celerybeat tasks on multiple aws intances?, 'each instance has redis and celery. how can i overcome this?
Zoha
How can i login a user with email or username in drf using djoser?
анатолий
hello. i have two models - Poll and PollAnswer. what is the best way to get all different poll objects through poll answers for one user id (PollAnswer's field).
Swamy
how-can-i-start-and-view-a-zoom-meeting-with-python-django rest API-and-zoom-api
Mirco
why-do-u-write-like-this ?
Maxim
same-question
Maxim
‎Swamy
анатолий
maybe spacebar is broken.
Rajput
i want to create an object of a model in django when a user object is created how to create the function i know that signals will be be used but how??
Anonymous
I want to develop a web application using django ...Can any One know how to do?
Anonymous
django is slower than another framework
Which Framework should I prefer?For web application development
ILYOSBEK
Doragonsureiyā
Which Framework should I prefer?For web application development
Looks like you need an offtopic group, please continue this conversation at @pythonofftopic as it's not related to Python
Simarpreet
Hy does anyone know about this error.. Need 3 values to unpack in for loop, got 0
Simarpreet
?
Mirco
send your code
With pastebin.org
Simarpreet
I want to display items category wise
Simarpreet
So using cats I m collecting names of all distinct categories. And then filtering the products of a particular category . And then storing the sub lists in a list
Rohan
Please use backticks to format your code
Rohan
Can’t understand too well since the indentation is messed up
Simarpreet
Its already formatted but copying and then pasting here is messing it up
Simarpreet
Till extend/append lies inside for loop rest is outside the loop
Rohan
!paste
Doragonsureiyā
Rule 5️⃣: To share code or error tracebacks, use an online pasting service like: - https://del.dog - https://dpaste.org - https://linkode.org - https://hastebin.com - https://bin.kv2.dev If you posted a wall of text, go back and delete it.
Simarpreet
Used linkode.org
λ701
Greetings Django devs! I was wondering if I could get help from you guys on Django query sets and model forms?
Bwaks
Hello if ever used crispy form why that this work ( <form method="POST" enctype="multipart/form-data"> {% csrf_token %} {{ myform.media }} {{form|crispy}} <div class="text-center"> <button type="submit" class="btn btn-primary" >Edit Profile</button> </div> </form> .............>> this works ) but this does not ( <form method="POST" enctype="multipart/form-data"> {% csrf_token %} {{ myform.media }} {{ form.gender|as_crispy_field }} <div class="text-center"> <button type="submit" class="btn btn-primary" >Edit Profile</button> </div> </form>
Doragonsureiyā
Greetings Django devs! I was wondering if I could get help from you guys on Django query sets and model forms?
Don't ask meta questions like: "Any user of $x here?" "Anyone used technology $y?" "Hello, I need help on $z!" Just ask directly! The better you are at explaining the problem, the more likely you are to get help. Asking smart questions
λ701
https://stackoverflow.com/questions/69661152/is-there-a-way-to-filter-a-model-form-based-on-a-boolean-value-of-the-related-mo This is my issue explained in detail. If anyone can help on this, I’d appreciate it.
♈
Django in login with enter register phone number then after OTP base login
♈
How can I do this
♈
Any idea ?
Maxim
Any idea ?
write code
♈
write code
How to do with random OTP code ?
Maxim
How to do with random OTP code ?
come up with or ask a specific question
♈
write code
You have any code example ?
Doragonsureiyā
You have any code example ?
We do not do things instead of you. This group is to help you on specific issues you have on YOUR code, so you have to show the code you wrote by yourself and explain where and why you are stuck... as simple as that. 🤷🏻‍♂️
Maxim
You have any code example ?
if you set such an ambitious goal, why do you ask others?
Артем
Hello everyone! I dont know how to solve my problem: in django docs we have such example for str method: class Person(models.Model): first_name = models.CharField(max_length=50) last_name = models.CharField(max_length=50) def __str__(self): return '%s %s' % (self.first_name, self.last_name) But if i have two another models with foreignkey to model Person. How to display these foreigney in different str method of mode Person?
Артем
You have to customize that foreign key dropdown.
What do i have to make? Add atribute to field?
William
6. How to filter FK dropdown values in django admin? — Django Admin Cookbook 2.0 documentation https://books.agiliq.com/projects/django-admin-cookbook/en/latest/filter_fk_dropdown.html
Артем
Another question, my manager load pictures with size about 1mb in django admin. How to display them in my site in compressed size?(about 0.2-0.3 mb)
Артем
i want to make it in order to speed up my site
Jeremias
Hi everyone ! I need run mi Django project on a RaspBerryPi 3. The test has passed successfully. Now i need work with opencv to resize and convert videos but a think that going to crash. somebody work with RP3 and OpenCV ?
Jeremias
Django 1.7 - Python 2.7 I know, im a dinosaur but we work with Couchdb and have not a driver for new version, its deprecated 😞
Jeremias
Thanks for everyone
SINGleton
hi guys
SINGleton
help pls i can't add media files on production server) permission error i don't know how to fix that
SINGleton
ubuntu
SINGleton
i have 2 users(admin and root) and i should run supervisor with admin
SINGleton
local
SINGleton
oh sorry i didn't understand u) yes i'm working with production server at the moment)
SINGleton
no, I misunderstood the question initially)
SINGleton
but yes i am working on a production server
SINGleton
yes
Doragonsureiyā
Python groups in other languages (‼️ Not managed by us ‼️) Amharic @python_amharic Arabic @arabipython Azerbaijani @azepug Chinese @pythonzh French @python_francais German @pythonde Hebrew @pythonisrael Hindi @pyindia Indonesian @pythonid Italian @python_ita @pythonita Kazakh @python_kz Persian @pyfarsi Portuguese @pythonbr Russian @ru_python_beginners @ru_python Spanish @PythonEsp Swahili @python_eafrica Turkish @python_tr Uzbek @python_uz If you have an (active) group you want to add, ask in the meta group, link in the rules page.