All the gory details about all the field types Django’s got to offer.
Popularity (by total correct streak): 4
Popularity (by number of users): 1
Automatically increments according to available IDs. You usually won't need to use this directly; a primary key field will automatically be added to your model if you don't specify otherwise. | AutoField | |
A 64 bit integer, much like an IntegerField except that it is guaranteed to fit numbers from -9223372036854775808 to 9223372036854775807. | BigIntegerField | |
A true/false field. The admin represents this as a checkbox. | BooleanField | |
A string field, for small- to large-sized strings. | CharField | |
A field of integers separated by commas. As in CharField, the max_length argument is required and the note about database portability mentioned there should be heeded. | CommaSeparatedIntegerField | |
A date, represented in Python by a datetime.date instance. | DateField | |
A date and time, represented in Python by a datetime.datetime instance. | DateTimeField | |
A fixed-precision decimal number, represented in Python by a Decimal instance. | DecimalField | |
A CharField that checks that the value is a valid email address. | EmailField | |
A file-upload field. | FileField | |
A CharField whose choices are limited to the filenames in a certain directory on the filesystem. | FilePathField | |
A floating-point number represented in Python by a float instance. | FloatField | |
Inherits all attributes and methods from FileField, but also validates that the uploaded object is a valid image. | ImageField | |
An integer. | IntegerField | |
An IP address, in string format (e.g. "192.0.2.30"). | IPAddressField | |
An IPv4 or IPv6 address, in string format (e.g. 192.0.2.30 or 2a02:42fe::4). | GenericIPAddressField | |
Like a BooleanField, but allows NULL as one of the options. Use this instead of a BooleanField with null=True. | NullBooleanField | |
Like an IntegerField, but must be either positive or zero (0). The value 0 is accepted for backward compatibility reasons. | PositiveIntegerField | |
Like a PositiveIntegerField, but only allows values under a certain (database-dependent) point. | PositiveSmallIntegerField | |
Contains only letters, numbers, underscores or hyphens. They're generally used in URLs. | SlugField | |
Like an IntegerField, but only allows values under a certain (database-dependent) point. | SmallIntegerField | |
A large text field. The admin represents this as a <textarea> (a multi-line input). | TextField | |
A time, represented in Python by a datetime.time instance. Accepts the same auto-population options as DateField. | TimeField | |
A CharField for a URL. | URLField | |
A many-to-one relationship. Requires a positional argument: the class to which the model is related. | ForeignKey | |
A many-to-many relationship. Requires a positional argument: the class to which the model is related. | ManyToManyField | |
A one-to-one relationship. Conceptually, this is similar to a ForeignKey with unique=True, but the "reverse" side of the relation will directly return a single object. | OneToOneField |
Quisition is a browser-based flashcard system that repeats old cards and introduces new ones at optimal time intervals. You can create your own card packs or use those developed by others.