I am leaving a question of why I got an application error after deploying Django successfully. It seems like I could deploy my Django app to Heroku, but I got an error when I wanted to see my app by pressing the "open app" button on the Heroku dashboard.
I am ignoring the database, which is Postgres, now. If I only care about the app without any data, I think I should be able to run the code on the Internet. Here is my source code on github, so I want you to check this out. Thanks so much in advance.
Here is the error message from Heroku.
Related
I am a python developer and new to GANDI (python/PostgreSQL web hosting). There is no document to migrate databases to their server. they have their document to deploy a Project Django but not very clear there are a lot of things missing. After taking a lot of time on the internet, I managed to deploy a Django project in their server. The site works smoothly with an SQLite database. Now I would like to make a Django Project with PostgreSQL. I have an emergency console, but I would like to work locally and then I would like to migrate the DBs to their phpPGadmin server. I just need your help to do makemigrations/migrate to thier PostgreSQL(PhpPGadmin) server. Thanks in advance.
I have deployed a Django app to Azure through Github actions to Azure app service. But it gives a Server error 500 everytime. I have configured the static files and react template properly. In the Diagnose tab there's no error is displaying. How can I troubleshoot and find the error or Is there any other things to configure in Azure? I hosted a same copy in Heroku and it works there.
Make sure you are using the below steps:
SCM_DO_BUILD_DURING_DEPLOYMENT=true – With this setting set to true - Kudu will execute build steps on your site during deployment.
DEBUG = 0 - please check (if this can make any change) after adding this config to your configuration.
You need to enable the Detailed error pages in your portal. This may give a detailed log to know why it happened.
Try Adding Application Insights to your App to check the detailed logs
Best practices to deploy your Application
Refer here Link 1 & Link 2
Good evening!
I have created a webapp using Django framework.
I have replaced a file in the /static/ folder locally (and put the same name for the new file). Then I pushed those changes to my GitHub repo and pulled them using bash console for my pythinanywюhere web app. Then I tried to reload the page, but I got the following message on pythonanywhere: "Your webapp took a long time to reload. It probably reloaded, but we were unable to check it".
The file was not replaced and the webpage shows and old version of image.
What should I do with this situation? I can't even suggest what the problem is.
The webpage will show older image until you reload your application.
But since you can't reload, it's showing older image.
I'm having same issue on my webApp on pythonAnywhere about reloading.
It has happened before. It's the problem with their servers. Wait until they solve it.
pythonAnywhere forum
Thanks for reporting. We had a problem with one of our servers,
it's fixed now. Sorry for any inconvenience caused.
Hello I recently deployed a django website on heroku and used aws to store my media and static files, the site was deployed successfully except i cant find the icons used by the template on production but those icons work locally what can i do to solve this. Thank you in anticipation of your favourable response
I am trying to deploy my django application to VPS but I get 505- Internal Server Error and it is normal for the first time.
However, the admin of the VPS server do not allow me to see the error logs of the Apache Server. In such situation, is there any way to view the real error messagges/logs ?
Thanks
If you deployed your app with DEBUG=True maybe the error message can help you.
Your vps admin should give to you at least a copy of your log files.. i don't see another way..