I would like to create a web page using django and postgresql. I can’t vizualize data using postgresql. I was trying with mysql and everything is OK but with postgresql it doesn’t work. Here is my code from github:
I’m trying to migrate from mysql to postgresql because I would like to upload my site in circumeo.
Your template and your view don’t match each other.
Your template is trying to render something called public.score1, but that is not what you’re passing to the rendering engine in the view (patients).
Side note: In the future, please do not post just a link to a repo without providing some details about what files and functions you think are involved in the issue.
Thank you for your reply! I revised views.py replacing patients with score1 but still the table from my database is not visible on my web page. There are no errors but the table with the information is not visible! I think that there is a problem with views.py, models.py, settings.py and the database ‘prida’ and the table ‘score’ from postgresql.
Thank you for your reply!
Now everything is working after revising models.py and views.py. I can visualize the data from my database using postgresql. Check please:
Now I would like to post my web site into Circumeo but there is something wrong in my database configuration. Could you please help? I have imported my project from github but there is something wrong and the page could not be load. Here is my link:
I was trying to load my web page through circumeo and postresql but without success. I think that I have problems with settings.py and the database settings. I don’t know that is so important to create the file requirements.txt and the folder staticfiles. Definitely something is wrong with my database in circumeo.
Ok, but I was being very specific with my question.
What precisely is that error message telling you? (I’m not asking you to identify the cause of the problem, only to identify the specific symptom that needs to be addressed.)
In this situation, you’re going to need to look at your server logs, both for nginx and your application. (Depending upon how you’re running your project, you may also need to check syslog as well.)
Something is wrong with my database and can’t revise the project using circumeo. Is it any different option how to host my project for free like circumeo and pythonanywhere. I’m using python version 3.12.0, django 5.1.2.