fieldName = models.CharField(max_length = 150)

      Python language logoDjango Model Char Field

      Django Public Recipes

      In this code, "fieldName" is a name for a new CharField. The CharField has a maximum length of 150 characters.

      Shortcut: django.field.char

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.