0👍
I solved the error by just removing this line on app.yaml
file.
That’s the line entrypoint: gunicorn -b :8000 NG.wsgi
I guess you do not have to specify the entrypoint when deploying a Django application on App Engine.
1👍
Looking for similar issues with the "500 server error" I found something that can be useful for you.
Apparently this error is received due to application errors as suggested here, the user also talks about taking a look at the deployment settings since the production and local hosts are different and set DEBUG = FALSE
. Here is a guide on how to configure your app for production.
Another question points to look for the Error Reporting panel in Google Cloud Platform dashboard to get a stacktrace to the problem in your code, if it is there. This can be helpful to solve a 500 error.
In the same question a user answers this issue is hard to solve straightforwardly and that you need to investigate for various reasons as we can see in this discussion, where they asked the OP for their logs to provide further help. Then, after checking them the OP got his own solution.
I would suggest looking at the configuration to check everything is ok for production deployment, try to check for more information in the Error Reporting panel and if you have the logs and you are still not able to troubleshoot the issue posting another or updating the question with this information.
- [Answered ]-What's the best way to post data from Django?
- [Answered ]-Does this many-to-many relationship make sense?
- [Answered ]-How can i get a value from forms.ModelChoiceField in django?
- [Answered ]-The model TokenProxy is already registered in app 'authtoken'