try testing
This commit is contained in:
@@ -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',
|
||||
|
||||
@@ -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),
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user