Commit 4aa434cf by Patryk Czarnik

Funkcja hello

parent dd9bf7c8
/.venv/
/.idea/
/db.sqlite3
from django.http import HttpResponse
from django.shortcuts import render
# Create your views here.
def hello(request):
return HttpResponse('Hello Django!')
......@@ -37,6 +37,7 @@ INSTALLED_APPS = [
"django.contrib.sessions",
"django.contrib.messages",
"django.contrib.staticfiles",
"aplikacja",
]
MIDDLEWARE = [
......
......@@ -17,7 +17,9 @@ Including another URLconf
from django.contrib import admin
from django.urls import path
from aplikacja.views import hello
urlpatterns = [
path("admin/", admin.site.urls),
path("", hello),
]
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment