File tree Expand file tree Collapse file tree 7 files changed +13
-13
lines changed
{{cookiecutter.project_slug}} Expand file tree Collapse file tree 7 files changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -181,7 +181,7 @@ Answer the prompts with your own desired options_. For example::
181
181
Choose from 1, 2 [1]: 1
182
182
Select cloud_provider:
183
183
1 - AWS
184
- 2 - GCS
184
+ 2 - GCP
185
185
3 - None
186
186
Choose from 1, 2, 3 [1]: 1
187
187
custom_bootstrap_compilation [n]: n
Original file line number Diff line number Diff line change 30
30
],
31
31
"cloud_provider" : [
32
32
" AWS" ,
33
- " GCE " ,
33
+ " GCP " ,
34
34
" None"
35
35
],
36
36
"custom_bootstrap_compilation" : " n" ,
Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ cloud_provider:
65
65
Select a cloud provider for static & media files. The choices are:
66
66
67
67
1. AWS _
68
- 2. GCS _
68
+ 2. GCP _
69
69
3. None
70
70
71
71
Note that if you choose no cloud provider, media files won't work.
@@ -123,7 +123,7 @@ debug:
123
123
.. _Gulp : https://github.com/gulpjs/gulp
124
124
125
125
.. _AWS : https://aws.amazon.com/s3/
126
- .. _ GCS : https://cloud.google.com/storage/
126
+ .. _ GCP : https://cloud.google.com/storage/
127
127
128
128
.. _Django Compressor : https://github.com/django-compressor/django-compressor
129
129
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ DJANGO_AWS_ACCESS_KEY_ID AWS_ACCESS_KEY_ID n/a
45
45
DJANGO_AWS_SECRET_ACCESS_KEY AWS_SECRET_ACCESS_KEY n/a raises error
46
46
DJANGO_AWS_STORAGE_BUCKET_NAME AWS_STORAGE_BUCKET_NAME n/a raises error
47
47
DJANGO_AWS_S3_REGION_NAME AWS_S3_REGION_NAME n/a None
48
- DJANGO_GCE_STORAGE_BUCKET_NAME GS_BUCKET_NAME n/a raises error
48
+ DJANGO_GCP_STORAGE_BUCKET_NAME GS_BUCKET_NAME n/a raises error
49
49
GOOGLE_APPLICATION_CREDENTIALS n/a n/a raises error
50
50
SENTRY_DSN SENTRY_DSN n/a raises error
51
51
DJANGO_SENTRY_LOG_LEVEL SENTRY_LOG_LEVEL n/a logging.INFO
Original file line number Diff line number Diff line change @@ -22,11 +22,11 @@ MAILGUN_DOMAIN=
22
22
DJANGO_AWS_ACCESS_KEY_ID=
23
23
DJANGO_AWS_SECRET_ACCESS_KEY=
24
24
DJANGO_AWS_STORAGE_BUCKET_NAME=
25
- {% elif cookiecutter.cloud_provider == 'GCE ' %}
26
- # GCE
25
+ {% elif cookiecutter.cloud_provider == 'GCP ' %}
26
+ # GCP
27
27
# ------------------------------------------------------------------------------
28
28
GOOGLE_APPLICATION_CREDENTIALS=
29
- DJANGO_GCE_STORAGE_BUCKET_NAME =
29
+ DJANGO_GCP_STORAGE_BUCKET_NAME =
30
30
{% endif %}
31
31
# django-allauth
32
32
# ------------------------------------------------------------------------------
Original file line number Diff line number Diff line change 91
91
AWS_DEFAULT_ACL = None
92
92
# https://django-storages.readthedocs.io/en/latest/backends/amazon-S3.html#settings
93
93
AWS_S3_REGION_NAME = env ("DJANGO_AWS_S3_REGION_NAME" , default = None )
94
- {% elif cookiecutter .cloud_provider == 'GCE ' % }
94
+ {% elif cookiecutter .cloud_provider == 'GCP ' % }
95
95
DEFAULT_FILE_STORAGE = "storages.backends.gcloud.GoogleCloudStorage"
96
- GS_BUCKET_NAME = env ("DJANGO_GCE_STORAGE_BUCKET_NAME " )
96
+ GS_BUCKET_NAME = env ("DJANGO_GCP_STORAGE_BUCKET_NAME " )
97
97
GS_DEFAULT_ACL = "publicRead"
98
98
{% endif - % }
99
99
106
106
{% elif cookiecutter .cloud_provider == 'AWS' - % }
107
107
STATICFILES_STORAGE = "config.settings.production.StaticRootS3Boto3Storage"
108
108
STATIC_URL = f"https://{ AWS_STORAGE_BUCKET_NAME } .s3.amazonaws.com/static/"
109
- {% elif cookiecutter .cloud_provider == 'GCE ' - % }
109
+ {% elif cookiecutter .cloud_provider == 'GCP ' - % }
110
110
STATIC_URL = f"https://storage.googleapis.com/{ GS_BUCKET_NAME } /static/"
111
111
{% endif - % }
112
112
@@ -131,7 +131,7 @@ class MediaRootS3Boto3Storage(S3Boto3Storage):
131
131
# endregion
132
132
DEFAULT_FILE_STORAGE = "config.settings.production.MediaRootS3Boto3Storage"
133
133
MEDIA_URL = f"https://{ AWS_STORAGE_BUCKET_NAME } .s3.amazonaws.com/media/"
134
- {% - elif cookiecutter .cloud_provider == 'GCE ' % }
134
+ {% - elif cookiecutter .cloud_provider == 'GCP ' % }
135
135
MEDIA_URL = f"https://storage.googleapis.com/{ GS_BUCKET_NAME } /media/"
136
136
MEDIA_ROOT = f"https://storage.googleapis.com/{ GS_BUCKET_NAME } /media/"
137
137
{% - endif % }
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ sentry-sdk==0.8.0 # https://github.com/getsentry/sentry-python
15
15
# ------------------------------------------------------------------------------
16
16
{%- if cookiecutter.cloud_provider == 'AWS' %}
17
17
django-storages[boto3]==1.7.1 # https://github.com/jschneier/django-storages
18
- {%- elif cookiecutter.cloud_provider == 'GCE ' %}
18
+ {%- elif cookiecutter.cloud_provider == 'GCP ' %}
19
19
django-storages[google]==1.7.1 # https://github.com/jschneier/django-storages
20
20
{%- endif %}
21
21
django-anymail[mailgun]==6.0.1 # https://github.com/anymail/django-anymail
You can’t perform that action at this time.
0 commit comments