marcogdepinto / Deep-learning-model-deploy-with-django

Serving a keras model (neural networks) in a website with the python Django-REST framework.
GNU General Public License v3.0
95 stars 38 forks source link

"Relation App_filemodel does not exist" error when uploading or deleting files #9

Closed marcogdepinto closed 4 years ago

marcogdepinto commented 4 years ago

Request Method: | GET https://emotion-classification-ravdess.herokuapp.com/filedelete/ ProgrammingError relation "App_filemodel" does not exist LINE 1: SELECT "App_filemodel"."id" FROM "App_filemodel" WHERE "App_...

marcogdepinto commented 4 years ago

Workaround: using version 1.1.

alezenonos commented 4 years ago

Amazing Work! What is is the workaround? What date shall we checkout?

marcogdepinto commented 4 years ago

@alezenonos hi, try version 1.1, source code here - https://github.com/marcogdepinto/Deep-learning-model-deploy-with-django/releases/tag/v.1.1 . If it's not working let me know. Unfortunately I have no bandwidth to debug in the short term.

alezenonos commented 4 years ago

Thanks for your reply.

Actually it worked for some reason. I just tried the followings again: python manage.py makemigrations App python manage.py migrate App

Also (for everyone else landed on this), had to change the user and create the db of course.

marcogdepinto commented 4 years ago

@alezenonos the issue was actually the one you described. Thanks for the hint, the migrations solved the issue. I also used this opportunity to refresh the requirements.txt to bump the Django version to Django 3 and adjust the other correct dependencies, will close this and release a new version soon. Thank you again!