Important Command of Shell
====================================================================================
Working With Django Shell
===================================================================================
using shell; we can do lot operation on database and model
=========>python manage.py shell
from NewsApp.models import News
news=Newsauthor='Ali',title="django sheel title",description ="alldfdfdf")
news.saves //this will save
news.title='updated title'
news.saves // you check the database and you will see title is updated
news.author='updateded authors'
news.saves
news.delete()
====================================================================================
References
===================================================================================
Last modified: Sunday, 2 February 2020, 4:44 PM