Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions appengine/flexible/django_cloudsql/mysite/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,14 +165,12 @@
# Static files (CSS, JavaScript, Images)
# [START staticurl]
# [START gaeflex_py_django_static_config]
# [START gaeflex_py_django_staticconfig]
# Define static storage via django-storages[google]
GS_BUCKET_NAME = env("GS_BUCKET_NAME")
STATIC_URL = "/static/"
DEFAULT_FILE_STORAGE = "storages.backends.gcloud.GoogleCloudStorage"
STATICFILES_STORAGE = "storages.backends.gcloud.GoogleCloudStorage"
GS_DEFAULT_ACL = "publicRead"
# [END gaeflex_py_django_staticconfig]
# [END gaeflex_py_django_static_config]
# [END staticurl]

Expand Down
2 changes: 0 additions & 2 deletions kubernetes_engine/django_tutorial/mysite/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,12 +108,10 @@

# Static files (CSS, JavaScript, Images)

# [START gke_django_staticconfig]
# [START gke_django_static_config]
STATIC_URL = '/static/'
# STATIC_URL = 'https://storage.googleapis.com/[YOUR_GCS_BUCKET]/static/'
# [END gke_django_static_config]
# [END gke_django_staticconfig]

STATIC_ROOT = 'static/'

Expand Down
2 changes: 0 additions & 2 deletions run/django/mysite/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,15 +157,13 @@

# Static files (CSS, JavaScript, Images)
# [START cloudrun_django_static_config]
# [START cloudrun_django_staticconfig]
# Define static storage via django-storages[google]
GS_BUCKET_NAME = env("GS_BUCKET_NAME")
STATIC_URL = "/static/"
DEFAULT_FILE_STORAGE = "storages.backends.gcloud.GoogleCloudStorage"
STATICFILES_STORAGE = "storages.backends.gcloud.GoogleCloudStorage"
GS_DEFAULT_ACL = "publicRead"
# [END cloudrun_django_static_config]
# [END cloudrun_django_staticconfig]

# Default primary key field type
# https://docs.djangoproject.com/en/3.2/ref/settings/#default-auto-field
Expand Down