Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

django insert data into database without form

trans = Trans() // here Trans is the class name which you have created as model
trans.field1 = data1 // you can assign data to whatever column you have create, filed1 is column of db
trans.save()
Comment

PREVIOUS NEXT
Code Example
Python :: install python 3 ubuntu 16.04 
Python :: first duplicate 
Python :: How do I pre-select specific values from a dynamically populated dropdown list for HTML form 
Python :: sklearn encoding pipelin 
Python :: Wtforms: How to generate blank value using select fields with dynamic choice values 
Python :: if space bar pressed pygame 
Python :: variable bound to set python 
Python :: Python 3 (python 3.7.3) sample 
Python :: walrus with ternary python 
Python :: ax pie rounding 
Python :: how to scrape data from github api python 
Python :: ring Using Lists during definition 
Python :: function to find the mean of column in dataframe in python 
Python :: nnumpy matrix count non negative values 
Python :: ring create an application to ask the user about his/her name. 
Python :: view scrapy response in chrome from inside the spider 
Python :: module not found after sucessful install 
Python :: what is primary key in python 
Python :: django date grater 
Python :: placeholder in model form 
Python :: Print Wavelet modes 
Python :: oaxaca 
Python :: where is titainum ore skyblock 
Python :: tensorboard dev upload in background colab 
Python :: tkinter call action to py file 
Python :: sleep python 
Python :: Aminul 
Python :: df.isna percentage 
Python :: how can i get the data from a queryset in django template 
Python :: python for infinite range 
ADD CONTENT
Topic
Content
Source link
Name
4+3 =