Error deploy Heroku app Django

1

After deploying on Heroku, I opened the link in my application ( link ), and it displayed the following error:

    ProgrammingError at /
relation "Produto" does not exist
LINE 1: ..., "Produto"."criado", "Produto"."modificado" FROM "Produto" ...
                                                             ^
Request Method: GET
Request URL:    https://silima.herokuapp.com/
Django Version: 2.0.3
Exception Type: ProgrammingError
Exception Value:    
relation "Produto" does not exist
LINE 1: ..., "Produto"."criado", "Produto"."modificado" FROM "Produto" ...
                                                             ^
Exception Location: /app/.heroku/python/lib/python3.6/site-packages/django/db/backends/utils.py in _execute, line 85
Python Executable:  /app/.heroku/python/bin/python
Python Version: 3.6.3
Python Path:    
['/app',
 '/app',
 '/app/.heroku/python/lib/python36.zip',
 '/app/.heroku/python/lib/python3.6',
 '/app/.heroku/python/lib/python3.6/lib-dynload',
 '/app/.heroku/python/lib/python3.6/site-packages']
Server time:    Qua, 23 Mai 2018 10:22:22 -0300
    
asked by anonymous 23.05.2018 / 15:28

1 answer

0

If you had no problems with deploy, I imagine you added the Postgres add-on. Then heroku run python manage.py migrate should solve the problem. Remember that before you have to be logged in ( heroku login ).

    
24.05.2018 / 16:52