Bharat Saraswat
What does django code look like?
$ django-admin startproject mysite
mysite/ manage.py mysite/ __init__.py settings.py urls.py asgi.py wsgi.py
$ python manage.py runserver
from django.db import models class Person(models.Model): first_name = models.CharField(max_length=30) last_name = models.CharField(max_length=30)
CREATE TABLE myapp_person ( "id" serial NOT NULL PRIMARY KEY, "first_name" varchar(30) NOT NULL, "last_name" varchar(30) NOT NULL );
References:
bhansa
@293bharat
By Bharat Saraswat