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 12
12
# See the License for the specific language governing permissions and
13
13
# limitations under the License.
14
14
#
15
- # [START runtime]
16
15
# [START gaeflex_py_django_app_yaml]
17
16
runtime : python
18
17
env : flex
@@ -24,4 +23,3 @@ beta_settings:
24
23
runtime_config :
25
24
python_version : 3.7
26
25
# [END gaeflex_py_django_app_yaml]
27
- # [END runtime]
Original file line number Diff line number Diff line change 109
109
110
110
# Database
111
111
112
- # [START dbconfig]
113
112
# [START gaeflex_py_django_database_config]
114
113
# Use django-environ to parse the connection string
115
114
DATABASES = {"default" : env .db ()}
120
119
DATABASES ["default" ]["PORT" ] = 5432
121
120
122
121
# [END gaeflex_py_django_database_config]
123
- # [END dbconfig]
124
122
125
123
# Use a in-memory sqlite3 database when testing in CI systems
126
124
if os .getenv ("TRAMPOLINE_CI" , None ):
162
160
USE_TZ = True
163
161
164
162
# Static files (CSS, JavaScript, Images)
165
- # [START staticurl]
166
163
# [START gaeflex_py_django_static_config]
167
164
# Define static storage via django-storages[google]
168
165
GS_BUCKET_NAME = env ("GS_BUCKET_NAME" )
177
174
}
178
175
GS_DEFAULT_ACL = "publicRead"
179
176
# [END gaeflex_py_django_static_config]
180
- # [END staticurl]
181
177
182
178
# Default primary key field type
183
179
# https://docs.djangoproject.com/en/stable/ref/settings/#default-auto-field
Original file line number Diff line number Diff line change 12
12
# See the License for the specific language governing permissions and
13
13
# limitations under the License.
14
14
#
15
- # [START runtime]
16
15
# [START gaeflex_py_django_app_yaml]
17
16
runtime : python
18
17
env : flex
@@ -24,4 +23,3 @@ beta_settings:
24
23
runtime_config :
25
24
python_version : 3.7
26
25
# [END gaeflex_py_django_app_yaml]
27
- # [END runtime]
Original file line number Diff line number Diff line change 109
109
110
110
# Database
111
111
112
- # [START dbconfig]
113
112
# [START gaeflex_py_django_database_config]
114
113
# Use django-environ to parse the connection string
115
114
DATABASES = {"default" : env .db ()}
120
119
DATABASES ["default" ]["PORT" ] = 5432
121
120
122
121
# [END gaeflex_py_django_database_config]
123
- # [END dbconfig]
124
122
125
123
# Use a in-memory sqlite3 database when testing in CI systems
126
124
if os .getenv ("TRAMPOLINE_CI" , None ):
163
161
USE_TZ = True
164
162
165
163
# Static files (CSS, JavaScript, Images)
166
- # [START staticurl]
167
164
# [START gaeflex_py_django_static_config]
168
165
# Define static storage via django-storages[google]
169
166
GS_BUCKET_NAME = env ("GS_BUCKET_NAME" )
172
169
STATICFILES_STORAGE = "storages.backends.gcloud.GoogleCloudStorage"
173
170
GS_DEFAULT_ACL = "publicRead"
174
171
# [END gaeflex_py_django_static_config]
175
- # [END staticurl]
176
172
177
173
# Default primary key field type
178
174
# https://docs.djangoproject.com/en/stable/ref/settings/#default-auto-field
You can’t perform that action at this time.
0 commit comments