if you need permission to access my account then yes you can, just reply me the solution
my template location->
/home/lnctgg/lnct/templates/index.html
settings.py->
TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [os.path.join(BASE_DIR, 'templates')],
'APP_DIRS': True,
'OPTIONS': {
'context_processors': [
'django.template.context_processors.debug',
'django.template.context_processors.request',
'django.contrib.auth.context_processors.auth',
'django.contrib.messages.context_processors.messages',
],
},
},
]
AUTH_USER_MODEL = 'CustomAuth.userLogin'
WSGI_APPLICATION = 'lnct.wsgi.application'
calling->
return render(request, 'index.html')
error ->
Exception Type: TemplateDoesNotExist
Exception Value: index.html
Exception Location: /home/lnctgg/.virtualenvs/virenv/lib/python3.7/site-packages/django/template/loader.py in get_template, line 19
&&&&
Template-loader postmortem
Django tried loading these templates, in this order:
Using engine django:
django.template.loaders.filesystem.Loader: /home/lnctgg/templates/index.html (Source does not exist)
django.template.loaders.app_directories.Loader: /home/lnctgg/.virtualenvs/virenv/lib/python3.7/site-packages/django/contrib/admin/templates/index.html (Source does not exist)
django.template.loaders.app_directories.Loader: /home/lnctgg/.virtualenvs/virenv/lib/python3.7/site-packages/django/contrib/auth/templates/index.html (Source does not exist)