﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
20400	during tutorial02 os, BASE_DIR not defined	karim.nassar@…	nobody	"If you follow the instructions in the tutorial02: https://docs.djangoproject.com/en/dev/intro/tutorial02/#customizing-your-project-s-templates

You get error: 
{{{
  File ""/home/myUser/path/to/project/projectName/projectName/settings.py"", line 116, in <module>
    os.path.join(BASE_DIR, 'templates')
  NameError: name 'os' is not defined
}}}
You need to add this line:
{{{
  import os
}}}
Then you get this error:
{{{
  File ""/home/myUser/path/to/project/projectName/projectName/settings.py"", line 116, in <module>
    os.path.join(BASE_DIR, 'templates')
  NameError: name 'BASE_DIR' is not defined
}}}
Add this line to settings.py:
{{{
   BASE_DIR = os.path.dirname(os.path.abspath(__file__))
}}}
Maybe that needs to be in tutorial?"	Uncategorized	closed	Documentation	1.6	Normal	invalid			Unreviewed	0	0	0	0	0	0
