finished product
This commit is contained in:
14
main/views.py
Normal file
14
main/views.py
Normal file
@@ -0,0 +1,14 @@
|
||||
from django.shortcuts import render
|
||||
from django.http import HttpResponse
|
||||
from django.template import loader
|
||||
from django.utils import timezone
|
||||
from django.urls import reverse
|
||||
from django.http import HttpResponseRedirect
|
||||
|
||||
# Create your views here.
|
||||
def index(request):
|
||||
template = loader.get_template('main/index.html')
|
||||
context = {
|
||||
|
||||
}
|
||||
return HttpResponse(template.render(context, request))
|
||||
Reference in New Issue
Block a user