Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

from django.db import models

from django.db import models

class Person(models.Model):
  	"""
    	This class creates a new table with 
        the name of your application and that class name. 
        The fully qualified name of the table 
        will be "appName_className". 
        Also, two fields with data type char will be 
        created: first_name and last_name.
    """
    first_name = models.CharField(max_length=30)
    last_name = models.CharField(max_length=30)
Comment

PREVIOUS NEXT
Code Example
Python :: python join list 
Python :: how to type using selenium python 
Python :: for loop to convert a list to lowercase 
Python :: qpushbutton pyqt5 
Python :: python opencv measure distance two shapes 
Python :: convert negative to positive in python 
Python :: python i++ 
Python :: Merge two data frames based on common column values in Pandas 
Python :: set value through serializer django 
Python :: time df.apply() python 
Python :: scrollbar tkinter 
Python :: dm user discord.py 
Python :: Scrapping tables in an HTML file with BeautifulSoup 
Python :: python tkinter entry widget 
Python :: python generator example 
Python :: how to make python into exe 
Python :: parallel loops in python 
Python :: Random night stars with python turtle 
Python :: unsupervised learning 
Python :: webdriverwait python 
Python :: python plot label value 
Python :: enable time layer arcpy 
Python :: pandas description of dataframe renaming column values 
Python :: create login system in python 
Python :: Dice roll and coin flip 
Python :: how to install package offline 
Python :: how to encode emoji to text in python 
Python :: seaborrn set figsize 
Python :: python show map with coordinates 
Python :: python list of dictionaries 
ADD CONTENT
Topic
Content
Source link
Name
2+5 =