Search code examples
djangopostgresqlweb-deploymentdigital-oceandroplet

error while deploying my django to the digital ocean server with postgres


i cloned my github repository to the remote machine and i done the following changes to the files

  • changed allowed host to server's ip
  • cleared migration files which was created in my local machine because that caused me many error
  • collected static files
  • sucessfully migrated

but when i run server i throws the following error

Exception Type: ProgrammingError
Exception Value: relation "blog_short_intro" does not exist
LINE 1: ...."profile_pic", "blog_short_intro"."content" FROM "blog_shor...

when i open the admin panel i can able to view the database tables but when i try to enter any of the tables that gives me error

pictures

error in homepage Error in homepage admin panel admin panel admin panel error when entered into any table admin panel error when entered into any table


Solution

  • we have to use the database name same as our project name then this error will be resolved