Commit 5cbe5a9f by Patryk Czarnik

startapp aplikacja

parent df952ba0
from django.contrib import admin
# Register your models here.
from django.apps import AppConfig
class AplikacjaConfig(AppConfig):
default_auto_field = "django.db.models.BigAutoField"
name = "aplikacja"
from django.db import models
# Create your models here.
from django.test import TestCase
# Create your tests here.
from django.http import HttpResponse
from django.shortcuts import render
# Create your views here.
def hello(request):
return HttpResponse('Hello world')
...@@ -37,6 +37,7 @@ INSTALLED_APPS = [ ...@@ -37,6 +37,7 @@ INSTALLED_APPS = [
"django.contrib.sessions", "django.contrib.sessions",
"django.contrib.messages", "django.contrib.messages",
"django.contrib.staticfiles", "django.contrib.staticfiles",
"aplikacja",
] ]
MIDDLEWARE = [ MIDDLEWARE = [
......
...@@ -18,6 +18,9 @@ Including another URLconf ...@@ -18,6 +18,9 @@ Including another URLconf
from django.contrib import admin from django.contrib import admin
from django.urls import path from django.urls import path
from aplikacja.views import hello
urlpatterns = [ urlpatterns = [
path("admin/", admin.site.urls), path("admin/", admin.site.urls),
path("hello", 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