From 7136453073d481400b30902ec2d2d82f1a135f3b Mon Sep 17 00:00:00 2001 From: ducoterra Date: Thu, 23 Apr 2020 10:14:48 -0400 Subject: [PATCH] test new lambdas --- .gitignore | 3 ++- .gitlab-ci.yml | 2 +- config/urls.py | 3 ++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 4ea05a1..bf8d8cd 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ venv/ -__pycache__/ \ No newline at end of file +__pycache__/ +db/ \ No newline at end of file diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 674d932..be245e9 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,7 +1,7 @@ variables: CI_PROJECT_DIR: "." CI_REGISTRY_IMAGE: hub.ducoterra.net/ducoterra/django - CI_COMMIT_TAG: 3.8.2_6 + CI_COMMIT_TAG: 3.8.2_8 DEPLOY: test stages: diff --git a/config/urls.py b/config/urls.py index 04229d6..ea62634 100644 --- a/config/urls.py +++ b/config/urls.py @@ -18,6 +18,7 @@ from django.urls import path from django.http import JsonResponse urlpatterns = [ + path('', lambda request: JsonResponse({"one": 1, "two": 2, "three": 3})), + path('test/', lambda request: JsonResponse({'hello':'world'})), path('admin/', admin.site.urls), - path('test/', lamda res: JsonResponse(res, {'hello':'world'})) ]