Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TemplateDoesNotExist at /admin/login/ #129

Open
sam-thecoder opened this issue Nov 7, 2016 · 0 comments
Open

TemplateDoesNotExist at /admin/login/ #129

sam-thecoder opened this issue Nov 7, 2016 · 0 comments

Comments

@sam-thecoder
Copy link

sam-thecoder commented Nov 7, 2016

I'm setting up a site using static pinax start static mysite but unfortunately setting up the admin is hell,

TemplateDoesNotExist at /admin/
admin/homepage.html
Environment:


Request Method: GET
Request URL: http://127.0.0.1:8000/admin/

Django Version: 1.9.8
Python Version: 2.7.12
Installed Applications:
['django.contrib.auth',
 'django.contrib.admin',
 'django.contrib.contenttypes',
 'django.contrib.messages',
 'django.contrib.sessions',
 'django.contrib.sites',
 'django.contrib.staticfiles',
 'bootstrapform',
 'pinax_theme_bootstrap',
 'accounts',
 'politician']
Installed Middleware:
['django.contrib.sessions.middleware.SessionMiddleware',
 'django.middleware.common.CommonMiddleware',
 'django.middleware.csrf.CsrfViewMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
 'django.contrib.messages.middleware.MessageMiddleware',
 'django.middleware.clickjacking.XFrameOptionsMiddleware']

Template loader postmortem
Django tried loading these templates, in this order:

Using engine django:
    * django.template.loaders.filesystem.Loader: /home/samuel/Documents/code/accounts/accounts/templates/admin/homepage.html (Source does not exist)
    * django.template.loaders.app_directories.Loader: /usr/local/lib/python2.7/dist-packages/django/contrib/auth/templates/admin/homepage.html (Source does not exist)
    * django.template.loaders.app_directories.Loader: /usr/local/lib/python2.7/dist-packages/django/contrib/admin/templates/admin/homepage.html (Source does not exist)
    * django.template.loaders.app_directories.Loader: /usr/local/lib/python2.7/dist-packages/bootstrapform/templates/admin/homepage.html (Source does not exist)
    * django.template.loaders.app_directories.Loader: /usr/local/lib/python2.7/dist-packages/pinax_theme_bootstrap/templates/admin/homepage.html (Source does not exist)
    * django.template.loaders.app_directories.Loader: /home/samuel/Documents/code/accounts/accounts/templates/admin/homepage.html (Source does not exist)



Traceback:

File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py" in get_response
  149.                     response = self.process_exception_by_middleware(e, request)

File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py" in get_response
  147.                     response = wrapped_callback(request, *callback_args, **callback_kwargs)

File "/home/samuel/Documents/code/accounts/accounts/views.py" in static_view
  12.     return render(request, template_name)

File "/usr/local/lib/python2.7/dist-packages/django/shortcuts.py" in render
  67.             template_name, context, request=request, using=using)

File "/usr/local/lib/python2.7/dist-packages/django/template/loader.py" in render_to_string
  96.             template = get_template(template_name, using=using)

File "/usr/local/lib/python2.7/dist-packages/django/template/loader.py" in get_template
  43.     raise TemplateDoesNotExist(template_name, chain=chain)

Exception Type: TemplateDoesNotExist at /admin/
Exception Value: admin/homepage.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant