14293
Telegram group for Django users. Django is a high-level Python Web framework (djangoproject.com). Rules from @Rules_for_Python apply here too, read them!
User Flier has 2/3 warnings; be careful!
Reason:
this is neither a job board nor a bulletin board
I wanna create my first project in djanho can someone help me and send me what I should do
Читать полностью…
check this GitHub repo https://github.com/Ekirapapaul/django-mpesa
Читать полностью…
you can just visit safaricom developer website for that.
Читать полностью…
Hello friends, I have this problem. When I print what the form contains after making a submit its print none .
Note that I made sure that each fields had a name andi deleted any form that may cause conflicts.
guys, how i can work with sms verifiction in Django?
Читать полностью…
Thank u, but again, that package just changed the admin panel automatically, not customizable.
Читать полностью…
User IT MANAGER has 1/3 warnings; be careful!
Reason:
speak English
#Vakansiya
❇️Python backend developer
🧑🏻💼 Idora: Eman
✍️ Mas'ul: hh.uz
📚 Texnologiya: Python, SQL, JS
🇺🇿 Telegram: @.
📞 Aloqa: +998957370731
🌐 Hudud: Toshkent
🕰 Ish vaqti: 09:00 18:00
💰 Maosh: Suhbat asosida
🗯 Tajriba: 1-3 yil
‼️ Qo'shimcha: English language
👉 Kanalga e'lon joylash uchun — @JOBS_IT_BOT
Kanal 👉 @Just_codee_It 👈
🫡Bizni kuzatishda davom eting!
Perhaps your smtp authentication config is improper
And due to which, your Django site is not able to send reset password email
In the forloop, when you are assigned Obj to form.save(commit=False) and saving it, for all the iterations the form class is same hence it’s saving same form again and again resulting in only one object created
1- Rather, you can create the form instance inside the forloop so on each iteration, a new form instance will be created and a new object too
2- One more way would be calling Model.objects.create(data-here) inside forloop
if you have many modifications in form then the first approach is better
You can use makemessages command, which automatically translates all the declared string/text and generates PO file
And once it’s generated, you can go through it for manual corrections if needed
Did u render the form in context dictionary inside views.py and include the form inside form tag properly in html?
Читать полностью…
Please how do I solve the error: "image attribute has no file attached to it"
I have done the configuration in my settings file, and m using something like {{item.image.url}} in the IMG src to reference it.
What m I doing wrong?
you can start here https://docs.djangoproject.com/en/4.2/contents/
Читать полностью…
A short code snippet would help to understand the code
First you can make sure if request.POST or request.data (depending on form body type) is having some data
They are only providing apis,am requesting if anyone has views,urls etc
Читать полностью…
Hi all,anyone with daraja documentation kindly assist
Читать полностью…
https://dev.to/tkirwa/otp-generation-redis-storage-sms-sending-and-verification-with-african-talking-api-in-django-and-drf-43dp
Check out this post
User Osiris has 1/3 warnings; be careful!
Reason:
don't request DMs (rule #9)
User Bekzod has 1/3 warnings; be careful!
Reason:
useless messages
while debugging drf in vscode, my viewset breakpoints are ignored.
where should i put the breakpoints so they can be fired?
Do pip install jazzmin then add jazzmin in your installed app in settings. Py
Читать полностью…
Yeah
The current error shows that your are assigning mobile_no (string) directly in place of foreign key, which was supposed to be an instance rather than a string
You can do as follows
submitted_mobile_no = request.POST.get(“mobile_no”)
related_object.foreign_key_field_name = MobileNumberModel.objects.get(mobile_no=submitted_mobile_no)
For further improvements, you can add some exception handling when record doesn’t exist with mobile number
There is less secure app option in gmail settings, if you are sending emails from your gmail, that must require authentication, and authentication needs “allow less secure apps” turned on to pass gmail security
You can also look for third party email gateways like sendgrid, mailgun, mail chimp etc
They provide some free emails per day/month too
6 months is more than enough
And if it’s a very reputed/big company like MNCs where you see your job in future then you can do 1 year
Yup
You can modify the form widgets by adding widgets in a Meta class in your form class
This widgets should be a dictionary containing keys as form field name and value as corresponding widget, you can further read about it in doc
And if you are using crispy forms, then you can use crispy forms helpers
And also, if you are looping over fields in html, you can also using django-widget-tweaks which allows you to add attributes through template filters, without writing whole html input