google app engine - Serving GAE Django project static files another bucket, not defoult bucket -


i developing django project on gae(google app engine). python2.7 django1.8

i want upload image file django app google storage bucket.so create buccket on google , added these configurations settings.py

default_file_storage = 'storages.backends.gs.gsbotostorage' gs_access_key_id = 'yourid' gs_secret_access_key = 'yourkey' gs_bucket_name = 'yourbucket' staticfiles_storage = 'storages.backends.gs.gsbotostorage' 

when run

python manage.py collectstatic 

django collect static files , send gs bucket , when project running on local machine, django can find static files. when deploy project gae project works django can't find static files.

there conflict. gae can serve static files in private bucket so, django(on gae) search static files in private bucket, not mybucket.

i think, must modify app.yaml file in project. documentation tutorials not enough django on gae.

i'd appreciate if help


Comments

Popular posts from this blog

cookies - Yii2 Advanced - Share session between frontend and mainsite (duplicate of frontend for www) -

angular - password and confirm password field validation angular2 reactive forms -

php - Permission denied. Laravel linux server -