Hi Eric,
Did you find the bug? I have the same issue running python 2.7.12 and
django 1.10.4
Den mandag den 15. februar 2016 kl. 20.02.55 UTC+1 skrev Tim Graham:
>
> It looks like you have a Python path problem or that your project isn't
> structured correctly such that the model is being regis
I figured it out. I had to either delete __init__.py in my root directory
(where manage.py is located) or call python manage.py polls.tests instead
of just python manage.py polls
Den mandag den 15. februar 2016 kl. 20.02.55 UTC+1 skrev Tim Graham:
>
> It looks like you have a Python path problem
It looks like you have a Python path problem or that your project isn't
structured correctly such that the model is being registered twice. Does
that mean anything to you? I'm not sure if you are also new to Python or
just to Django.
On Monday, February 15, 2016 at 11:16:51 AM UTC-5, Eric Livin
I have been walking through the Tutorial for Django, and upon reaching part
5 and introducing the first test case, I get this output (the directory I
put the tutorial in is called 'demo')
RuntimeError: Model class demo.polls.models.Question doesn't declare an
explicit app_label and isn't i
4 matches
Mail list logo