R
Railway8mo ago
Joa7

Database server does not connect

Good afternoon, I have already made all the connections with the postgreSQL database server but when I am using the website it tells me no such table.
No description
28 Replies
Percy
Percy8mo ago
Project ID: a9fc5e35-67d8-4b92-976b-89746f62441f
Joa7
Joa78mo ago
a9fc5e35-67d8-4b92-976b-89746f62441f
Brody
Brody8mo ago
may I ask what the screenshot of the failed build logs has to do with database tables
Joa7
Joa78mo ago
I thought the error was in the database because of the message "OperationalError at /CrearPoster/ no such table: blog_content" So I don't understand the problem, how can I solve it?
Brody
Brody8mo ago
do you think you could answer my question first?
Joa7
Joa78mo ago
yes with pleasure
Brody
Brody8mo ago
^
Joa7
Joa78mo ago
I don't exactly know what causes the failed build logs since the requirements.txt is updated
Brody
Brody8mo ago
okay but what does it have to do with database tables
Joa7
Joa78mo ago
I thought it was the database table because that error was told to me on the website. But the table in the database does appear in the data section. That's the reason I'm confused.
Brody
Brody8mo ago
again, what does the requirements.txt have to do with database tables
Joa7
Joa78mo ago
I thought that because of the packages I am using such as dj-database-url, psycopg2, python-dotenv
Brody
Brody8mo ago
are you running migrations
Joa7
Joa78mo ago
yes I did python manage.py migrate
Brody
Brody8mo ago
where are you running that and how
Joa7
Joa78mo ago
also create a service variable DATABASE_URL
Brody
Brody8mo ago
^
Joa7
Joa78mo ago
I ran it in visual studio, with the database entered as a String after doing the migrations, I changed it for an environment variable (the same error came out in both ways) the two times I changed I did git push origin main
Brody
Brody8mo ago
you should run the migration with railway run railway run python manage.py migrate
Joa7
Joa78mo ago
Where should I write and how please?
Brody
Brody8mo ago
in your local terminal in your project
Joa7
Joa78mo ago
"railway run python manage.py migrate" no exist I already did it python manage.py migrate
Brody
Brody8mo ago
have you installed the cli?
Joa7
Joa78mo ago
no
Brody
Brody8mo ago
well theres your issue
Joa7
Joa78mo ago
That's good, what would the command be like?
Joa7
Joa78mo ago
my problem was using packages to connect to the database
Want results from more Discord servers?
Add your server