try testing

This commit is contained in:
ducoterra
2020-04-24 19:39:30 -04:00
parent 7136453073
commit 6631529a06
15 changed files with 186 additions and 5 deletions

View File

@@ -31,6 +31,8 @@ ALLOWED_HOSTS = ["localhost", "test.ducoterra.net"]
# Application definition
INSTALLED_APPS = [
'api',
'rest_framework',
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',

View File

@@ -14,11 +14,10 @@ Including another URLconf
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
"""
from django.contrib import admin
from django.urls import path
from django.urls import path, include
from django.http import JsonResponse
urlpatterns = [
path('', lambda request: JsonResponse({"one": 1, "two": 2, "three": 3})),
path('test/', lambda request: JsonResponse({'hello':'world'})),
path('', include('api.urls')),
path('admin/', admin.site.urls),
]