Part-3

templates folder in django

blog_project/blogapp/templates/blogapp/ ..html files..

blog_project/templates/ ..html files..

templates/blogapp/home.html .. about.html

INSTALLED_APPS = [
'blogapp.apps.BlogappConfig',
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
]
from django.shortcuts import renderdef home(request):
return render(request,'blogapp/home.html')
def about(request):
return render(request,'blogapp/about.html')

Posting Django Tutorials with Beginner to Advanced Projects

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store