diff --git a/appengine/flexible/django_cloudsql/requirements.txt b/appengine/flexible/django_cloudsql/requirements.txt index afa1650b8796..17350d603aa7 100644 --- a/appengine/flexible/django_cloudsql/requirements.txt +++ b/appengine/flexible/django_cloudsql/requirements.txt @@ -1,5 +1,7 @@ -Django==3.0.1 +Django==3.0.2; python_version > '3.5' +Django==2.2.9; python_version == '3.5' # mysqlclient==1.4.1 # Uncomment this line if using MySQL wheel==0.33.6 gunicorn==20.0.4 -psycopg2==2.8.4 +#psycopg2==2.8.4 # uncomment if you prefer to build from source +psycopg2-binary==2.8.4 diff --git a/appengine/flexible/hello_world_django/requirements.txt b/appengine/flexible/hello_world_django/requirements.txt index 8a6bdd090a0c..465b3be23508 100644 --- a/appengine/flexible/hello_world_django/requirements.txt +++ b/appengine/flexible/hello_world_django/requirements.txt @@ -1,2 +1,5 @@ -Django==3.0.1 -gunicorn==20.0.4 +Django==3.0.2; python_version > '3.5' +Django==2.2.9; python_version == '3.5' +Django==1.11.27; python_version < '3.0' +gunicorn==20.0.4; python_version > '3.0' +gunicorn==19.10.0; python_version < '3.0' diff --git a/kubernetes_engine/django_tutorial/requirements.txt b/kubernetes_engine/django_tutorial/requirements.txt index 62f16d8232be..21b025b24d3a 100644 --- a/kubernetes_engine/django_tutorial/requirements.txt +++ b/kubernetes_engine/django_tutorial/requirements.txt @@ -1,7 +1,11 @@ -Django==3.0.1 +Django==3.0.2; python_version > '3.5' +Django==2.2.9; python_version == '3.5' +Django==1.11.27;python_version < '3.0' # Uncomment the mysqlclient requirement if you are using MySQL rather than # PostgreSQL. You must also have a MySQL client installed in that case. #mysqlclient==1.4.1 wheel==0.33.6 -gunicorn==20.0.4 -psycopg2==2.8.4 +gunicorn==20.0.4; python_version > '3.0' +gunicorn==19.10.0; python_version < '3.0' +# psycopg2==2.8.4 # uncomment if you prefer to build from source +psycopg2-binary==2.8.4 diff --git a/noxfile-template.py b/noxfile-template.py index 67fa6d5a4ff7..4204daf27cad 100644 --- a/noxfile-template.py +++ b/noxfile-template.py @@ -146,6 +146,9 @@ def _setup_appengine_sdk(session): str(Path(sample).absolute().relative_to(REPO_ROOT)).startswith( "appengine/standard_python37" ) + or str(Path(sample).absolute().relative_to(REPO_ROOT)).startswith( + "appengine/flexible/django_cloudsql" + ) or str(Path(sample).absolute().relative_to(REPO_ROOT)).startswith("functions/") or str(Path(sample).absolute().relative_to(REPO_ROOT)).startswith( "bigquery/pandas-gbq-migration"