diff --git a/sdks/apigw-manager/Dockerfile b/sdks/apigw-manager/Dockerfile index 0aa8d3d0..aa99eb4a 100644 --- a/sdks/apigw-manager/Dockerfile +++ b/sdks/apigw-manager/Dockerfile @@ -1,4 +1,4 @@ -FROM python:3.7-slim-buster +FROM python:3.11.10-slim-bullseye ENV LC_ALL=C.UTF-8 ENV LANG=C.UTF-8 diff --git a/sdks/apigw-manager/demo/urls.py b/sdks/apigw-manager/demo/urls.py index 037275d7..537b5f1c 100644 --- a/sdks/apigw-manager/demo/urls.py +++ b/sdks/apigw-manager/demo/urls.py @@ -9,12 +9,12 @@ specific language governing permissions and limitations under the License. """ -from django.conf.urls import url +from django.urls import re_path from demo import views urlpatterns = [ - url(r"^test/jwt/?", views.jwt_info), - url(r"^test/app/?", views.jwt_app), - url(r"^test/user/?", views.jwt_user), + re_path(r"^test/jwt/?", views.jwt_info), + re_path(r"^test/app/?", views.jwt_app), + re_path(r"^test/user/?", views.jwt_user), ] diff --git a/sdks/apigw-manager/src/apigw_manager/apigw/migrations/0001_initial.py b/sdks/apigw-manager/src/apigw_manager/apigw/migrations/0001_initial.py index 0c12d360..34663691 100644 --- a/sdks/apigw-manager/src/apigw_manager/apigw/migrations/0001_initial.py +++ b/sdks/apigw-manager/src/apigw_manager/apigw/migrations/0001_initial.py @@ -39,8 +39,4 @@ class Migration(migrations.Migration): name='context', unique_together=set([('scope', 'key')]), ), - migrations.AlterIndexTogether( - name='context', - index_together=set([('scope', 'key')]), - ), ] diff --git a/sdks/apigw-manager/src/apigw_manager/apigw/models.py b/sdks/apigw-manager/src/apigw_manager/apigw/models.py index fc2e260c..126421d8 100644 --- a/sdks/apigw-manager/src/apigw_manager/apigw/models.py +++ b/sdks/apigw-manager/src/apigw_manager/apigw/models.py @@ -22,5 +22,4 @@ class Context(models.Model): class Meta: unique_together = ("scope", "key") - index_together = ("scope", "key") db_table = "apigw_manager_context"