django | Unsorted

Telegram-канал django - Django

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!

Subscribe to a channel

Django

are you sure item has image attribute

Читать полностью…

Django

User Flier has 2/3 warnings; be careful!
Reason:
this is neither a job board nor a bulletin board

Читать полностью…

Django

I wanna create my first project in djanho can someone help me and send me what I should do

Читать полностью…

Django

check this GitHub repo https://github.com/Ekirapapaul/django-mpesa

Читать полностью…

Django

you can just visit safaricom developer website for that.

Читать полностью…

Django

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.

Читать полностью…

Django

guys, how i can work with sms verifiction in Django?

Читать полностью…

Django

Thank u, but again, that package just changed the admin panel automatically, not customizable.

Читать полностью…

Django

User IT MANAGER has 1/3 warnings; be careful!
Reason:
speak English

Читать полностью…

Django

#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!

Читать полностью…

Django

Perhaps your smtp authentication config is improper
And due to which, your Django site is not able to send reset password email

Читать полностью…

Django

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

Читать полностью…

Django

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

Читать полностью…

Django

Depends on country’s pattern too

Читать полностью…

Django

Did u render the form in context dictionary inside views.py and include the form inside form tag properly in html?

Читать полностью…

Django

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?

Читать полностью…

Django

you can start here https://docs.djangoproject.com/en/4.2/contents/

Читать полностью…

Django

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

Читать полностью…

Django

They are only providing apis,am requesting if anyone has views,urls etc

Читать полностью…

Django

Hi all,anyone with daraja documentation kindly assist

Читать полностью…

Django

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

Читать полностью…

Django

User Osiris has 1/3 warnings; be careful!
Reason:
don't request DMs (rule #9)

Читать полностью…

Django

User Bekzod has 1/3 warnings; be careful!
Reason:
useless messages

Читать полностью…

Django

while debugging drf in vscode, my viewset breakpoints are ignored.
where should i put the breakpoints so they can be fired?

Читать полностью…

Django

Do pip install jazzmin then add jazzmin in your installed app in settings. Py

Читать полностью…

Django

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

Читать полностью…

Django

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

Читать полностью…

Django

Ok got it thankyou so much

Читать полностью…

Django

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

Читать полностью…

Django

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

Читать полностью…
Subscribe to a channel