4ter prakt termin

This commit is contained in:
2018-11-05 17:03:33 +01:00
parent 287d3c78f4
commit 21f17ec603
5 changed files with 45 additions and 2 deletions
+1
View File
@@ -1,6 +1,7 @@
from django.conf.urls import url
from . import views
urlpatterns = [
url(r'^$', views.index, name='index'),
]
+4 -1
View File
@@ -1,6 +1,9 @@
from django.http import HttpResponse
from django.shortcuts import render
import time
def index(request):
return HttpResponse('lalala')
context = {'now' : time.strftime('%H:%M:%S', time.localtime())}
return render(request, 'polls/index.html', context)
# Create your views here.