R
Railway4mo 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
Percy4mo ago
Project ID: a9fc5e35-67d8-4b92-976b-89746f62441f
Joa7
Joa74mo ago
a9fc5e35-67d8-4b92-976b-89746f62441f
Brody
Brody4mo ago
may I ask what the screenshot of the failed build logs has to do with database tables
Joa7
Joa74mo 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
Brody4mo ago
do you think you could answer my question first?
Joa7
Joa74mo ago
yes with pleasure
Brody
Brody4mo ago
^
Joa7
Joa74mo ago
I don't exactly know what causes the failed build logs since the requirements.txt is updated
Brody
Brody4mo ago
okay but what does it have to do with database tables
Joa7
Joa74mo 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
Brody4mo ago
again, what does the requirements.txt have to do with database tables
Joa7
Joa74mo ago
I thought that because of the packages I am using such as dj-database-url, psycopg2, python-dotenv
Brody
Brody4mo ago
are you running migrations
Joa7
Joa74mo ago
yes I did python manage.py migrate
Brody
Brody4mo ago
where are you running that and how
Joa7
Joa74mo ago
also create a service variable DATABASE_URL
Brody
Brody4mo ago
^
Joa7
Joa74mo 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
Brody4mo ago
you should run the migration with railway run railway run python manage.py migrate
Joa7
Joa74mo ago
Where should I write and how please?
Brody
Brody4mo ago
in your local terminal in your project
Joa7
Joa74mo ago
"railway run python manage.py migrate" no exist I already did it python manage.py migrate
Brody
Brody4mo ago
have you installed the cli?
Joa7
Joa74mo ago
no
Brody
Brody4mo ago
well theres your issue
Joa7
Joa74mo ago
That's good, what would the command be like?
Joa7
Joa74mo ago
my problem was using packages to connect to the database
Want results from more Discord servers?
Add your server
More Posts