2 years ago
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.
28 Replies
2 years ago
may I ask what the screenshot of the failed build logs has to do with database tables
I thought the error was in the database because of the message "OperationalError at /CrearPoster/
no such table: blog_content"
2 years ago
do you think you could answer my question first?
2 years ago
^
I don't exactly know what causes the failed build logs since the requirements.txt is updated
2 years ago
okay but what does it have to do with database tables
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.
2 years ago
again, what does the requirements.txt have to do with database tables
I thought that because of the packages I am using such as dj-database-url, psycopg2, python-dotenv
2 years ago
are you running migrations
yes I did python manage.py migrate
2 years ago
where are you running that and how
2 years 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
2 years ago
you should run the migration with railway runrailway run python manage.py migrate
2 years ago
in your local terminal in your project
2 years ago
have you installed the cli?
2 years ago
well theres your issue
2 years ago