Fakultas Ilmu Komputer UI

Skip to content
Snippets Groups Projects
Commit ed45e475 authored by Muhamad Adhytia Wana Putra Rahmadhan's avatar Muhamad Adhytia Wana Putra Rahmadhan
Browse files

[CHORES] Pass linter

parent d3bbd0e1
No related branches found
No related tags found
No related merge requests found
from django.contrib import admin
# from django.contrib import admin
# Register your models here.
from django.db import models
# from django.db import models
# Create your models here.
......@@ -14,4 +14,5 @@ class HelloWorldUnitTest(TestCase):
def test_landing_page_return_json_response(self):
response = Client().get('')
self.assertJSONEqual(response.content, {'string':'Hello World!'})
\ No newline at end of file
self.assertJSONEqual(response.content, {'string':'Hello World!'})
\ No newline at end of file
......@@ -3,4 +3,4 @@ from .views import hello_world
urlpatterns = [
path('', hello_world, name='hello_world')
]
\ No newline at end of file
]
from django.shortcuts import render
# from django.shortcuts import render
from django.http import JsonResponse
# Create your views here.
def hello_world(request):
return JsonResponse({'string':'Hello World!'})
\ No newline at end of file
return JsonResponse({'string':'Hello World!'})
\ No newline at end of file
......@@ -131,4 +131,4 @@ USE_TZ = True
# https://docs.djangoproject.com/en/3.1/howto/static-files/
STATIC_URL = '/static/'
STATIC_ROOT = os.path.join(BASE_DIR, 'static')
\ No newline at end of file
STATIC_ROOT = os.path.join(BASE_DIR, 'static')
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment