David
unread,Sep 18, 2015, 7:56:10 PM9/18/15Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Django users
Dear Django experts,
I am reading through Harry Percival's "Test-Driven Development with
Python".
As I finished chapter 3 yesterday, I was fully on track, perfectly
aligned with the book.
Today I restarted my computer, activated the virtualenv in question --
and get an error message that was not there beforehand:
(Percival_TDD)david@lubuntu:~/PycharmProjects/Percival_TDD/superlists/lists$
python tests.py
Traceback (most recent call last):
File "tests.py", line 5, in <module>
from lists.views import home_page
ImportError: No module named 'lists'
I neither understand why he doesn't find 'lists' anymore nor do I know
how to solve the problem.
Can you please guide me towards a solution?
Thank you!
David
The project structure looks as follows:
(Percival_TDD)david@lubuntu:~/PycharmProjects/Percival_TDD/superlists$ tree
.
├── db.sqlite3
├── functional_tests.py
├── lists
│ ├── admin.py
│ ├── __init__.py
│ ├── migrations
│ │ └── __init__.py
│ ├── models.py
│ ├── tests.py
│ └── views.py
├── manage.py
└── superlists
├── __init__.py
├── __pycache__
│ ├── __init__.cpython-34.pyc
│ ├── settings.cpython-34.pyc
│ ├── urls.cpython-34.pyc
│ └── wsgi.cpython-34.pyc
├── settings.py
├── urls.py
└── wsgi.py