Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
laredotornado opened this issue Jan 29, 2020 · 1 comment

Comments

@laredotornado
Copy link

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 ...

<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js"></script>

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

@yusufhilmi
Copy link

yusufhilmi commented Jul 16, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants