Relative Content

Tag Archive for djangogoogle-cloud-platform

How to update code for Django Stack on Google Cloud Platform

i have used Django Stack listed on Marketplace of GCP.
When I visit the IP address I get an error DisallowedHost so I’ve changed settings.py to (for now) ALLOWED_HOSTS = ["*"].
Problem is I don’t see any changes, still same error. How do I make it update?

SuspiciousOperation – Attempted access to ‘%s’ denied | Django

I uploaded my web app online. It contains a section that sends an audio file as input. Previously locally I used FileSystemStorage to store files in the “media/my_audio” path, but now that I’ve uploaded it to Google Cloud Platform I can’t do that anymore. I have already configured everything, but I think there is some problem in my code.