from django.http import HttpResponse
def sample_function(request):
return HttpResponse(“Welcome to Django”)
python -m django –version
get_version()
method as follows :import django
print(django.get_version())
python manage.py
migrate (migrate command looks at the INSTALLED_APPS
settings and creates database tables accordingly)python manage.py
makemigrations (tells Django you have created/ changed your models)python manage.py
sqlmigrate (sqlmigrate takes the migration names and returns their SQL)