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
Charly
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
Eng_Salah Aldin Alhaj
hhhhhh me too
Eng_Salah Aldin Alhaj
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
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
Eng_Salah Aldin Alhaj
so i say the extension jpeg not working and show some random letter
png extension it works well
Charly
Charly
Charly
If not you are going just to waste of seconds
Eng_Salah Aldin Alhaj
Charly
Charly
Try also this: disable all extensions and try again
Charly
Charly
or quirks mode
Eng_Salah Aldin Alhaj
my file name is adv and the addblocker is removed
Charly
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
Maxim
Ritesh
Hi, all can anyone help me in how we get customize response in output
The_one_ring
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
The Inspired
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
jūdê
jūdê
Ritesh
Hamza
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
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ê
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
Mojo