Commit db81e605 authored by Emma's avatar Emma

HelloWorld text microservice

parent 7c78e76b
from django.contrib import admin
# Register your models here.
from django.apps import AppConfig
class HelloConfig(AppConfig):
name = 'hello'
from django.db import models
# Create your models here.
from django.test import TestCase
# Create your tests here.
from django.http import HttpResponse
def index(request):
return HttpResponse('HelloWorld')
......@@ -31,6 +31,7 @@ ALLOWED_HOSTS = []
# Application definition
INSTALLED_APPS = [
'hello',
]
MIDDLEWARE = [
......
......@@ -15,5 +15,8 @@ Including another URLconf
"""
from django.urls import path
from hello.views import index
urlpatterns = [
path('', index)
]
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