DEV Community

Ezozbek Kholbutayev
Ezozbek Kholbutayev

Posted on

Django orm haqida!

Image description




Django
models.py file da yozilad

  class Product(models.Model):
    title = models.CharField(max_length=120)
Enter fullscreen mode Exit fullscreen mode

SQL

     CREATE TABLE Product(
         id int NOT NULL PRIMARY KEY,
         title varchar(120),
     );
Enter fullscreen mode Exit fullscreen mode

Top comments (0)