11. Step-1
❑ Open your browser and go www.python.org
❑ Underneath the heading at the top that says Python Releases for Windows, click
on the link for the Latest Python 3 Release - Python 3.x.x.
❑ Scroll to the bottom and select either Windows x86-64 executable installer for 64-
bit or Windows x86 executable installer for 32-bit.
12. Step-2 Run the Installer
Once you have chosen and downloaded an installer, simply run it by double-clicking on
the downloaded file. A dialog should appear that looks something like this:
13.
14.
15.
16. Go to the Command Prompt
pip install django==3.2.*
17. Go to the Command Prompt
python -m django --version
22. from django.shortcuts import render
from django.http import HttpResponse
# Create your views here.
def hi(request):
return HttpResponse('<h1>Welcome to Django Project</h1>')
23. At first you have to be create a urls.py file in your app
from django.urls import path
from . import views #import the view
urlpatterns = [
path('', views.hi,name='Home-page'),
path(‘about', views.about,name=‘About-page'),
]
24. Add your app url in your project
from django.contrib import admin
from django.urls import path, include
urlpatterns = [
path('admin/', admin.site.urls),
path('', include('myapp.urls'))
]