Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- TemplateDoesNotExist at /greatbetter/auth
- main.html
- Request Method: GET
- Request URL: http://localhost:8000/greatbetter/auth
- Django Version: 1.8.14
- Exception Type: TemplateDoesNotExist
- Exception Value:
- main.html
- Exception Location: /home/steel/.virtualenv/django1814/local/lib/python2.7/site-packages/django/template/loader.py in get_template, line 46
- Python Executable: /home/steel/.virtualenv/django1814/bin/python
- Python Version: 2.7.11
- Python Path:
- ['/home/steel/dev/gbetter',
- '/home/steel/.virtualenv/django1814/lib/python2.7',
- '/home/steel/.virtualenv/django1814/lib/python2.7/plat-x86_64-linux-gnu',
- '/home/steel/.virtualenv/django1814/lib/python2.7/lib-tk',
- '/home/steel/.virtualenv/django1814/lib/python2.7/lib-old',
- '/home/steel/.virtualenv/django1814/lib/python2.7/lib-dynload',
- '/usr/lib/python2.7',
- '/usr/lib/python2.7/plat-x86_64-linux-gnu',
- '/usr/lib/python2.7/lib-tk',
- '/home/steel/.virtualenv/django1814/local/lib/python2.7/site-packages',
- '/home/steel/.virtualenv/django1814/lib/python2.7/site-packages']
- Server time: Sat, 10 Sep 2016 16:30:45 +0000
- Template-loader postmortem
- Django tried loading these templates, in this order:
- Using loader django.template.loaders.filesystem.Loader:
- Using loader django.template.loaders.app_directories.Loader:
- /home/steel/.virtualenv/django1814/local/lib/python2.7/site-packages/django/contrib/admin/templates/main.html (File does not exist)
- /home/steel/.virtualenv/django1814/local/lib/python2.7/site-packages/django/contrib/auth/templates/main.html (File does not exist)
- Traceback Switch to copy-and-paste view
- /home/steel/.virtualenv/django1814/local/lib/python2.7/site-packages/django/core/handlers/base.py in get_response
- response = wrapped_callback(request, *callback_args, **callback_kwargs) ...
- ▶ Local vars
- /home/steel/.virtualenv/django1814/local/lib/python2.7/site-packages/django/utils/decorators.py in _wrapped_view
- response = view_func(request, *args, **kwargs) ...
- ▶ Local vars
- /home/steel/dev/gbetter/greatbetter/views.py in auth
- return render(request,'main.html',{'form':form}) ...
- ▶ Local vars
- /home/steel/.virtualenv/django1814/local/lib/python2.7/site-packages/django/shortcuts.py in render
- template_name, context, request=request, using=using) ...
- ▶ Local vars
- /home/steel/.virtualenv/django1814/local/lib/python2.7/site-packages/django/template/loader.py in render_to_string
- template = get_template(template_name, using=using) ...
- ▶ Local vars
- /home/steel/.virtualenv/django1814/local/lib/python2.7/site-packages/django/template/loader.py in get_template
- raise TemplateDoesNotExist(template_name) ...
- ▶ Local vars
- SETTINGS setups:
- TEMPLATE_DIRS
- ['/home/steel/dev/gbetter/templates']
- TEMPLATES
- [{'APP_DIRS': True,
- 'BACKEND': 'django.template.backends.django.DjangoTemplates',
- 'DIRS': [],
- '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']}}]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement