Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

import models

from django.db import models
from django.contrib.auth.models import User
Comment

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 :: numpy softmax 
Python :: python httpserver 
Python :: python - remove repeted columns in a df 
Python :: how to take user input in a list in python 
Python :: how to display qr code in python 
Python :: matplotlib grid thickness 
Python :: values outside range pandas 
Python :: debconf: falling back to frontend: Readline Configuring tzdata 
Python :: python plot_confusion_matrix 
Python :: python wget download 
Python :: np.random.seed 
Python :: python max absolute value 
Python :: replace nan in pandas 
Python :: lisy in python 
Python :: rvec tvec ros message 
Python :: Not getting spanish characters python 
Python :: fruit shop using list in python 
Python :: folium python map in full screen 
Python :: how to set the location on a pygame window 
Python :: get current time python django 
Python :: python init matrix 
Python :: datafram from one date to another 
Python :: pytho narrondir un nombre 
Python :: python selenium go back to previous page 
Python :: how to sort a dictionary by value in python 
Python :: rename file python 
Python :: hotel room allocation tool in python 
Python :: vertical line in matplotlib 
Python :: default style matplotlib python 
Python :: godot 2d movement 
ADD CONTENT
Topic
Content
Source link
Name
9+5 =