dockerizing-django icon indicating copy to clipboard operation
dockerizing-django copied to clipboard

"ProgrammingError at /" raised for line 17 of apps/todo/templates/_base.html file

Open laredotornado opened this issue 5 years ago • 1 comments

I'm working through the tutorial you have (https://realpython.com/django-development-with-docker-compose-and-machine/) using

Mac High Sierra docker-machine version 0.13.0, build 9ba6da9 docker-compose version 1.25.2, build 698e2846 Docker version 19.03.5, build 633a0ea

All the setup and migration ran successfully (at least from what I could tell) until I got to visiting the application home page locally (for me that was http://192.168.99.100). This resulted in the error

ProgrammingError at / relation "todo_item" does not exist LINE 1: ...todo_item"."text", "todo_item"."date_posted" FROM "todo_item...

pointing at this line (17) in the _base.html template file ...

I don't see any "TodoItem" model in the models.py file. Any ideas what's wrong?

laredotornado avatar Jan 29 '20 22:01 laredotornado

I had the exact same issue,

I've used this tutorial then changed the django app in directory /web with my own django project and it worked. I am assuming this is related to Django error rather than dockerizing it.

edit: Check this issue #56

yusufhilmi avatar Jul 16 '20 13:07 yusufhilmi