Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

creating objects in Django

>>> from blog.models import Blog
>>> b = Blog(name='Beatles Blog', tagline='All the latest Beatles news.')
>>> b.save()
Source by docs.djangoproject.com #
 
PREVIOUS NEXT
Tagged: #creating #objects #Django
ADD COMMENT
Topic
Name
9+6 =