I'm new to python. I'm using python 2.7.1 with django 1.5.1.
When I put this code:
TEMPLATE_DIRS = [os.path.join(BASE_DIR, 'templates')]
in my settings.py
, the terminal shows the following error:
File "/home/pipo/Desktop/mysite/mysite/settings.py", line 116, in <module>
[os.path.join(BASE_DIR, 'templates')]
NameError: name 'os' is not defined
Can someone tell me the reason for this error?