Issue
So, my Django app was working just fine when I used the default sqllite database. I then switched to postgres database for heroku deployment but now nothing works.
My model looks like this:
class Post(models.Model):
name = models.CharField(max_length=15)
temperature = models.IntegerField()
condition = models.CharField(max_length=20)
date = models.DateTimeField()
now nothing loads and I get the errors like:
django.db.utils.ProgrammingError: column weather_post.name does not exist
LINE 1: ... AS "temperature__max" FROM "weather_post" WHERE ("weather_p...
Solution
Error is because of DB models is not migrated in heroku server. Already written use this link
Answered By - Sakthi Panneerselvam
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.