Backend Development
Django
Subjective
Oct 03, 2025
Explain Django models and their field types.
Detailed Explanation
Django models are Python classes that define database table structure.
Common field types:
• CharField - text fields
• IntegerField - integers
• DateTimeField - date/time
• BooleanField - true/false
• ForeignKey - relationships
• ManyToManyField - many-to-many relationships
• EmailField - email validation
• URLField - URL validation
• TextField - large text
• DecimalField - decimal numbers
Discussion (0)
No comments yet. Be the first to share your thoughts!
Share Your Thoughts