Zweiter Schritt Erstellen von Python -Projekt

// Creating URL PATTERN 
// go to mainControl - urls.py - look for urlpatterns = []
from . import views
path('', views.home, name='home'),
// Creating home function 
// go to mainControl create new file call it views.py
// inside views.py 
from django.shortcuts import render
def home(request):
	return render(request, 'home.html')
// Creating templates folder from benleolamsbook folder directly
// inside templates folder create new file called: home.html
// go to mainControl - settings.py - look for TEMPLATES = [ ]
// from - 'DIRS': [], to 'DIRS': ['templates'],
// in home.html type: 
<h1> Home page </h1> 
// go back to http://127.0.0.1:8000/ 
// see the output ( Home page )      
BenLeolam