File tree Expand file tree Collapse file tree 4 files changed +0
-12
lines changed
flexible_python37_and_earlier/django_cloudsql Expand file tree Collapse file tree 4 files changed +0
-12
lines changed Original file line number Diff line number Diff line change 1212# See the License for the specific language governing permissions and
1313# limitations under the License.
1414#
15- # [START runtime]
1615# [START gaeflex_py_django_app_yaml]
1716runtime : python
1817env : flex
@@ -24,4 +23,3 @@ beta_settings:
2423runtime_config :
2524 python_version : 3.7
2625# [END gaeflex_py_django_app_yaml]
27- # [END runtime]
Original file line number Diff line number Diff line change 109109
110110# Database
111111
112- # [START dbconfig]
113112# [START gaeflex_py_django_database_config]
114113# Use django-environ to parse the connection string
115114DATABASES = {"default" : env .db ()}
120119 DATABASES ["default" ]["PORT" ] = 5432
121120
122121# [END gaeflex_py_django_database_config]
123- # [END dbconfig]
124122
125123# Use a in-memory sqlite3 database when testing in CI systems
126124if os .getenv ("TRAMPOLINE_CI" , None ):
162160USE_TZ = True
163161
164162# Static files (CSS, JavaScript, Images)
165- # [START staticurl]
166163# [START gaeflex_py_django_static_config]
167164# Define static storage via django-storages[google]
168165GS_BUCKET_NAME = env ("GS_BUCKET_NAME" )
177174}
178175GS_DEFAULT_ACL = "publicRead"
179176# [END gaeflex_py_django_static_config]
180- # [END staticurl]
181177
182178# Default primary key field type
183179# https://docs.djangoproject.com/en/stable/ref/settings/#default-auto-field
Original file line number Diff line number Diff line change 1212# See the License for the specific language governing permissions and
1313# limitations under the License.
1414#
15- # [START runtime]
1615# [START gaeflex_py_django_app_yaml]
1716runtime : python
1817env : flex
@@ -24,4 +23,3 @@ beta_settings:
2423runtime_config :
2524 python_version : 3.7
2625# [END gaeflex_py_django_app_yaml]
27- # [END runtime]
Original file line number Diff line number Diff line change 109109
110110# Database
111111
112- # [START dbconfig]
113112# [START gaeflex_py_django_database_config]
114113# Use django-environ to parse the connection string
115114DATABASES = {"default" : env .db ()}
120119 DATABASES ["default" ]["PORT" ] = 5432
121120
122121# [END gaeflex_py_django_database_config]
123- # [END dbconfig]
124122
125123# Use a in-memory sqlite3 database when testing in CI systems
126124if os .getenv ("TRAMPOLINE_CI" , None ):
163161USE_TZ = True
164162
165163# Static files (CSS, JavaScript, Images)
166- # [START staticurl]
167164# [START gaeflex_py_django_static_config]
168165# Define static storage via django-storages[google]
169166GS_BUCKET_NAME = env ("GS_BUCKET_NAME" )
172169STATICFILES_STORAGE = "storages.backends.gcloud.GoogleCloudStorage"
173170GS_DEFAULT_ACL = "publicRead"
174171# [END gaeflex_py_django_static_config]
175- # [END staticurl]
176172
177173# Default primary key field type
178174# https://docs.djangoproject.com/en/stable/ref/settings/#default-auto-field
You can’t perform that action at this time.
0 commit comments