Creating Instances of Tech_project class - SethuGopalan/ebdjangoVR GitHub Wiki

db.sqlite3 has been created in the root of Tech_project with Migration Now create rows in your table that are the various projects show on the site.

create instances of Tech_Project class, using the Django shell. The Django shell is similar to the Python shell but allows to access the database and create entries. To access the Django shell, command:

python manage.py shell

the command prompt will change from $ to >>>.

create a new project with the following attributes:

name: My First Project

description: A web development project.

technology: Django

p1 = Project(

... title='My Team Project',

... description='A web application project.',

... technology='Python',

... image='img/Tech_project1.png'

... )

p1.save()

image: img/project1.png