Charly
If you don't show the full thing from the start helping is really hard
Mojo
How do I create an "other" option in Field.choices?
Hamza
When should I use forms.py file If I build a backend to apps Nedd this file ??
Luis
Friends does anyone know how to use the MS Teams api in DJango
Doragonsureiyā
Friends does anyone know how to use the MS Teams api in DJango
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
Eng_Salah Aldin Alhaj
Eng_Salah Aldin Alhaj
bro are you have idea about this problem
Charly
bro are you have idea about this problem
I Might but as I told you, its really hard to you because always I told you you need to add somethin you said you where doing that from the start or show code that is not your real code
Eng_Salah Aldin Alhaj
bro i think i know what problem now is format jpeg
Eng_Salah Aldin Alhaj
when iam changing another file with extension png is working
Eng_Salah Aldin Alhaj
i want to view gif or jpeg in html template anyone have idea to fix this problem 😅
Eng_Salah Aldin Alhaj
django doesn't know jpeg format
cj
django doesn't know jpeg format
I bet 1000 bucks it's not Django's problem
Eng_Salah Aldin Alhaj
hhhhhh me too
Eng_Salah Aldin Alhaj
I bet 1000 bucks it's not Django's problem
bro when use png no problem but when use jpeg some problem shown
cj
bro when use png no problem but when use jpeg some problem shown
I'm not your bro... and you should explain what you're exactly doing , show your code traceback and logs, nobody reads minds here
Eng_Salah Aldin Alhaj
and here use https://imgbox.com/tWfcZCAj here no problem
Eng_Salah Aldin Alhaj
note: only use change extension is code run
Charly
How many time I need to told you that the xetra characters don't affect?
Eng_Salah Aldin Alhaj
please look to photos and speak
Charly
please look to photos and speak
I've looked at the photos
Charly
I don't think you know how HTML works
Charly
And is OK but please don't say thats the problem
Eng_Salah Aldin Alhaj
Charly
Open the console tab and it might give a hint of the issue
Charly
are beginner???????
I don't know ¯\_(ツ)_/¯
Eng_Salah Aldin Alhaj
so i say the extension jpeg not working and show some random letter png extension it works well
Charly
so i say the extension jpeg not working and show some random letter png extension it works well
And that makes no sense at all, trust me, do what I told you to do
Eng_Salah Aldin Alhaj
And that makes no sense at all, trust me, do what I told you to do
With all due respect to your point of view, I now know the cause of the problem, but I want a solution
Charly
If not you are going just to waste of seconds
Eng_Salah Aldin Alhaj
Charly
what you say
https://t.me/django/220684
Eng_Salah Aldin Alhaj
https://t.me/django/220684
net::ERR_BLOCKED_BY_CLIENT
Charly
net::ERR_BLOCKED_BY_CLIENT
Show us the full error
Charly
Try also this: disable all extensions and try again
cj
here i use jpeg https://imgbox.com/lkOWYWq4
what are those random nonsense characters there?
Charly
or quirks mode
Eng_Salah Aldin Alhaj
an extension probably
yes because addblocker
Eng_Salah Aldin Alhaj
my file name is adv and the addblocker is removed
Charly
yes because addblocker
Now you believe me?
Eng_Salah Aldin Alhaj
Eng_Salah Aldin Alhaj
I'm sorry, but it was impossible for me to think that the reason was the blocking ads
Maksim
What difference between get_user and authenticate. What is better to use?
Freak🙃
Any recommend the site i can download free Django templates
Ritesh
Hi, all can anyone help me in how we get customize response in output
Ritesh
Explain in detail
If we have 5 field in our data but we want to display only 2 field. ..
Ritesh
How we can get response as per our need
Ritesh
If anyone help me out for above question...
∆$¶u
If we have 5 field in our data but we want to display only 2 field. ..
models.objects.get("your field name")
The Inspired
If we have 5 field in our data but we want to display only 2 field. ..
You have to configure your frontend to display only 2 fields...
The Inspired
django always returns an object which has ALL the attributes
The Inspired
so all the data will be sent to frontend by Django
The Inspired
it is upto you how you decide to show it.
Ritesh
Can anyone suggest me how can I use validators using django core any website ya post
Hamza
(550, b'5.4.5 Daily user sending quota exceeded. u12-20020a05622a17cc00b003422c7ccbc5sm1566289qtk.59 - gsmtp')
Hamza
what is the reason of this error
Hamza
it occurs when sending email
Koen de
what is the reason of this error
Your smtp server is not allowing you to send anymore emails. Contact the administrator of it
jūdê
Can anyone suggest me how can I use validators using django core any website ya post
The inbuilt validators or you want to write custom validators
Ritesh
The inbuilt validators or you want to write custom validators
Custom validators without using restframework
jūdê
Custom validators without using restframework
Well, it’s as simple as either creating a validators.py file in the app you want to use, write a validation class eg class UpperCaseValidator(object): Define a validate method, a get_help_text method and use ValidationError from Django.code.exceptions You should be fine
Hamza
Can I use business email ?
To send unlimited emails
jūdê
To send unlimited emails
It depends on your package Try using a business email to test platforms like mailgun or sendgrid, it should work fine
Ritesh
jūdê
https://sixfeetup.com/blog/custom-password-validators-in-django Use the link above to get a grasp, then check the docs below to get more details https://docs.djangoproject.com/en/4.1/ref/validators/
Koen de
To send unlimited emails
Since this is not Django related, the questions and answers might get removed. But you can check gmail or host your own SMTP server
Sergey
Hi folks is any troubles for upgrading django (with drf) project from 3 to 4? And may be there’s some version control for Python libs, that can find new one version , that not conflict with each other’s?
Mojo
To display an item's name on the admin dashboard we use: def str(self): return self.name How can I display both the item name and its id, instead of just the name?
Koen de
To display an item's name on the admin dashboard we use: def str(self): return self.name How can I display both the item name and its id, instead of just the name?
Few solutions; with separate columns in ‘list_display’ or with def str(self): return f”{self.id} - {self.name}”