4ter prakt termin
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
from django.conf.urls import url
|
||||
|
||||
from . import views
|
||||
|
||||
urlpatterns = [
|
||||
url(r'^$', views.index, name='index'),
|
||||
]
|
||||
|
||||
+4
-1
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user