Practical Django Projects Book Chapter 4
Previous… Chapter 3
Error Description 1:
When you complete the tasks mentioned in the page 47 and 48. When you try to run the command
|
1 |
python manage.py syncdb |
If you get this error
|
1 |
Error: No module named coltrane |
Solution:
Follow these steps:
If you are using windows 7 operating system. Then open the Python IDLE and do the following
|
1 |
import sys |
|
1 2 |
if "C:\\YourProjectFolder" not in sys.path sys.path.append("C:\\YourProjectFolder") |
If you are confused, here is the screenshot.

Now run python manage.py syncdb again.
If you still get this error, then the possible solution is:
Solution:
You folder structure should be like this:
You have to create the coltrane folder inside the cms folder. Open you cms folder, you will notice another cms folder, you have to create the coltrane folder beside that folder like this:


Practical Django Projects Book Errors for Django 1.4 « Edit Distance
Jun 12, 2012 @ 11:46:28
[...] Countine… Part 2: Chapter 4 [...]