xxxxxxxxxx
os.path.join(os.path.dirname(__file__) ,'../templates').replace('\\','/')
xxxxxxxxxx
Modify settings.py.
TEMPLATES = [
{
'DIRS': [os.path.join(BASE_DIR, 'templates'),
os.path.join(BASE_DIR, 'your_app_name', 'templates', 'your_app_name'),
]
}
]
xxxxxxxxxx
INSTALLED_APPS = [
'your_app_name'
]
#on settings.py
#check whether you have installed your app
xxxxxxxxxx
# inside settings.py
INSTALLED_APPS = [
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
# add this in case u didnt
'my_app_name'
]