I’m working my way through a django tutorial http://net.tutsplus.com/tutorials/python-tutorials/python-from-scratch-creating-a-dynamic-website/ . Following the directions in the template section, I have added:
TEMPLATE_DIRS = (
"F:/firstblog/blog/templates",
Which is the full path.
I’m getting the following error output:
Request Method: GET
Request URL: http://127.0.0.1:8000/
Django Version: 1.4.3
Exception Type: ImportError
Exception Value:
No module named blog
Exception Location: f:\python27\lib\site-packages\django\utils\importlib.py in import_module, line 35
Python Executable: f:\python27\python.exe
Python Version: 2.7.3
My installed apps are:
INSTALLED_APPS = (
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.messages',
'django.contrib.staticfiles',
I’d appreciate any advice on how to fix this,
Thank you,
Bill
you should also take a look at the tutorial included in django docs for the parts that may not be covered in the one you found.
you may need to modify
settings.pyand add theblogapp toINSTALLED_APPSto solve theImportError. This is covered in the activating models section of the tutorial.EDIT: here is what seems to be needed to solve the
ImportErroryou had.