Friday, December 1, 2017

Django Learn Series | Fields


Field Types:
  1. Numeric Data
    1. IntegerField 
    2. DecimalField
  2. Textual Data
    1. CharField
      • Requires max_length attribute
    2. TextField
      • Doesn't require max_length attribute
    3. EmailField
    4. URLField
  3. File Data
    1. FileField
      • Example: filename.docx
    2. ImageField
      • Example: abc.jpg
  4. Miscellaneous Data
    1. BooleanField
    2. DateTimeField
This link provides detailed info about field arguments and field types.

Previous in this Series | Next in this Series




If you enjoyed this post, make sure you subscribe to my RSS feed! Comments are encouraged

No comments:
Write comments