remove updated at delted deleted_at in django code example

Example 1: delete and start fresh with db django

Delete the sqlite database file (often db.sqlite3) in your django project folder (or wherever you placed it)
Delete everything except __init__.py file from migration folder in all django apps
Make changes in your models (models.py).
Run the command python manage.py makemigrations or python3 manage.py makemigrations
Then run the command python manage.py migrate.

Example 2: how to add elememt in pytohn

ls=[]
ls.append('Apple')
ls.append('Mango')
for i in ls:
	print(i)

Tags:

Sql Example