Literary
do anyone know how to integrate subscription based paypal method in rest framework
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
Sanjarbek
Ayush
ValueError at /
The view enroll.views.add_show did not return an HttpResponse object.It returned None instead.
Ayush
Plz help me guys
Maxim
Emre
Hello everybody,
How can i manage celerybeat tasks on multiple aws intances?,
'each instance has redis and celery.
how can i overcome this?
MeHDI_rh ∞
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??
Rajput
Anonymous
I want to develop a web application using django ...Can any One know how to do?
ILYOSBEK
ILYOSBEK
Mirco
Simarpreet
Hy does anyone know about this error.. Need 3 values to unpack in for loop, got 0
Simarpreet
?
ILYOSBEK
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ā
λ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
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. 🤷🏻♂️
Артем
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?
William
Артем
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
William
William
Артем
Артем
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
Sparrow
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
Maxim
Nisis
Артем
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.