You are on page 1of 1

django-admin startproject myproject

python manage.py startapp webapp

open your myproject/settings.py and add your app manually:


INSTALLED_APPS = (
'webapp',
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
)

Once you have installed your app, let’s create a view now. Open your
webapp/views.py and put the below code in it:
from django.shortcuts import render
from django.http import HttpResponse

def index(request):
return HttpResponse("<H2>HEY! Welcome to Edureka! </H2>")

You might also like