What is difference between blank and null?
Answer / Dilip Singh Tomar
In Django Python:
1. A `null` field means the field has no value, whereas a `blank=True` field allows an empty string or None value.
2. If you set a field as `null=True`, it allows the database to store null values for that field. However, if you set a field as `blank=True`, Django will allow forms to be saved with an empty string or None for that field.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is urls py in django?
Explain different ways to trigger / raise exceptions in your python script ?
What is the difference between del() and remove() methods of list ?
What is related_name in django?
What color noise is best for sleeping?
What are caching strategies in django?
How would you pronounce django?
How do you pronounce django in python?
What is django template language?
Does the django framework scale?
How does django session work?
What python version should be used with django?