Reworked helloworld

This commit is contained in:
2022-06-28 09:40:58 +03:00
parent 9235dd06c6
commit 23d55ed995
9 changed files with 3 additions and 3 deletions
View File
+3
View File
@@ -0,0 +1,3 @@
from django.contrib import admin
# Register your models here.
+6
View File
@@ -0,0 +1,6 @@
from django.apps import AppConfig
class HelloworldConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'helloworld'
View File
+3
View File
@@ -0,0 +1,3 @@
from django.db import models
# Create your models here.
+3
View File
@@ -0,0 +1,3 @@
from django.test import TestCase
# Create your tests here.
+8
View File
@@ -0,0 +1,8 @@
from django.urls import path
from . import views
urlpatterns = [
path('', views.index, name='index'),
]
+5
View File
@@ -0,0 +1,5 @@
from django.http import HttpResponse
def index(request):
return HttpResponse('<b>Hallo, Welt!</b>')