With the recent update to RadioCo 2.0 user logout stopped working. It apperas and error with the following information, checking the source code the only place where logged_out.html exists is at
django-radio/radio/apps/radio/templates/registration/logged_out.html
django-radio/radio/apps/radio/templates/registration/logged_out.html
django-radio/venv/lib/python2.7/site-packages/grappelli/templates/registration/logged_out.html
django-radio/venv/lib/python2.7/site-packages/django/contrib/admin/templates/registration/logged_out.html
radioco/venv/lib/python2.7/site-packages/radio/libs/home/templates/home/logged_out.html
radioco/venv/lib/python2.7/site-packages/django/contrib/auth/tests/templates/registration/logged_out.html
radioco/venv/lib/python2.7/site-packages/django/contrib/admin/templates/registration/logged_out.html
Environment:
Request Method: GET
Request URL: https://cuacfm.org/radioco/admin/logout/
Django Version: 1.8.8
Python Version: 2.7.9
Installed Applications:
('django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.messages',
'django.contrib.staticfiles',
'grappelli',
'filebrowser',
'django.contrib.admin',
'django.contrib.sitemaps',
'django.contrib.humanize',
'ckeditor',
'bootstrap3',
'rest_framework',
'rest_framework.authtoken',
'disqus',
'apps.users',
'apps.programmes',
'apps.dashboard',
'apps.schedules',
'apps.global_settings',
'apps.radio')
Installed Middleware:
('django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
'django.middleware.locale.LocaleMiddleware')
Template Loader Error:
Django tried loading these templates, in this order:
Using loader django.template.loaders.filesystem.Loader:
/var/www/html/django-radio/radio/templates/radio/logged_out.html (File does not exist)
Using loader django.template.loaders.app_directories.Loader:
/var/www/html/django-radio/venv/local/lib/python2.7/site-packages/django/contrib/auth/templates/radio/logged_out.html (File does not exist)
/var/www/html/django-radio/venv/local/lib/python2.7/site-packages/grappelli/templates/radio/logged_out.html (File does not exist)
/var/www/html/django-radio/venv/local/lib/python2.7/site-packages/filebrowser/templates/radio/logged_out.html (File does not exist)
/var/www/html/django-radio/venv/local/lib/python2.7/site-packages/django/contrib/admin/templates/radio/logged_out.html (File does not exist)
/var/www/html/django-radio/venv/local/lib/python2.7/site-packages/django/contrib/sitemaps/templates/radio/logged_out.html (File does not exist)
/var/www/html/django-radio/venv/local/lib/python2.7/site-packages/ckeditor/templates/radio/logged_out.html (File does not exist)
/var/www/html/django-radio/venv/local/lib/python2.7/site-packages/bootstrap3/templates/radio/logged_out.html (File does not exist)
/var/www/html/django-radio/venv/local/lib/python2.7/site-packages/rest_framework/templates/radio/logged_out.html (File does not exist)
/var/www/html/django-radio/venv/local/lib/python2.7/site-packages/disqus/templates/radio/logged_out.html (File does not exist)
/var/www/html/django-radio/radio/apps/users/templates/radio/logged_out.html (File does not exist)
/var/www/html/django-radio/radio/apps/programmes/templates/radio/logged_out.html (File does not exist)
/var/www/html/django-radio/radio/apps/dashboard/templates/radio/logged_out.html (File does not exist)
/var/www/html/django-radio/radio/apps/schedules/templates/radio/logged_out.html (File does not exist)
/var/www/html/django-radio/radio/apps/global_settings/templates/radio/logged_out.html (File does not exist)
/var/www/html/django-radio/radio/apps/radio/templates/radio/logged_out.html (File does not exist)
Traceback:
File "/var/www/html/django-radio/venv/local/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response
164. response = response.render()
File "/var/www/html/django-radio/venv/local/lib/python2.7/site-packages/django/template/response.py" in render
158. self.content = self.rendered_content
File "/var/www/html/django-radio/venv/local/lib/python2.7/site-packages/django/template/response.py" in rendered_content
133. template = self._resolve_template(self.template_name)
File "/var/www/html/django-radio/venv/local/lib/python2.7/site-packages/django/template/response.py" in _resolve_template
88. new_template = self.resolve_template(template)
File "/var/www/html/django-radio/venv/local/lib/python2.7/site-packages/django/template/response.py" in resolve_template
80. return loader.get_template(template, using=self.using)
File "/var/www/html/django-radio/venv/local/lib/python2.7/site-packages/django/template/loader.py" in get_template
46. raise TemplateDoesNotExist(template_name)
Exception Type: TemplateDoesNotExist at /admin/logout/
Exception Value: radio/logged_out.html