SHARE
TWEET
Untitled
a guest
Aug 1st, 2017
6
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- Environment:
- Request Method: GET
- Request URL: http://127.0.0.1:8000/
- Django Version: 1.11.3
- Python Version: 2.7.9
- Installed Applications:
- ['LEDs.apps.LedsConfig',
- 'django.contrib.admin',
- 'django.contrib.auth',
- 'django.contrib.contenttypes',
- 'django.contrib.sessions',
- 'django.contrib.messages',
- 'django.contrib.staticfiles',
- 'crispy_forms',
- 'registration']
- Installed Middleware:
- ['django.middleware.security.SecurityMiddleware',
- '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']
- Template error:
- In template /home/pi/Desktop/Leafsite/LEDs/templates/base.html, error at line 9
- context must be a dict rather than Context. 1 : {% load staticfiles %}
- 2 :
- 3 : <!DOCTYPE html>
- 4 : <html lang="en">
- 5 : <head>
- 6 : <meta charset="utf-8">
- 7 : <meta name="viewport" content="width=device-width, initial-scale=1">
- 8 : <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
- 9 : <script src="https://aj ax.googleapis.com /ajax/libs/jquery/3.2.1/jquery.min.js"></script>
- 10 : <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
- 11 :
- 12 : <title>LED Control Site</title>
- 13 :
- 14 : </head>
- 15 :
- 16 : <body>
- 17 :
- 18 :
- 19 :
- Traceback:
- File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/exception.py" in inner
- 41. response = get_response(request)
- File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py" in _get_response
- 187. response = self.process_exception_by_middleware(e, request)
- File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py" in _get_response
- 185. response = wrapped_callback(request, *callback_args, **callback_kwargs)
- File "/home/pi/Desktop/Leafsite/LEDs/views.py" in home
- 47. return render(request, 'home.html', {'template_title': title,'form': form,'state': state})
- File "/usr/local/lib/python2.7/dist-packages/django/shortcuts.py" in render
- 30. content = loader.render_to_string(template_name, context, request, using=using)
- File "/usr/local/lib/python2.7/dist-packages/django/template/loader.py" in render_to_string
- 68. return template.render(context, request)
- File "/usr/local/lib/python2.7/dist-packages/django/template/backends/django.py" in render
- 66. return self.template.render(context)
- File "/usr/local/lib/python2.7/dist-packages/django/template/base.py" in render
- 207. return self._render(context)
- File "/usr/local/lib/python2.7/dist-packages/django/template/base.py" in _render
- 199. return self.nodelist.render(context)
- File "/usr/local/lib/python2.7/dist-packages/django/template/base.py" in render
- 990. bit = node.render_annotated(context)
- File "/usr/local/lib/python2.7/dist-packages/django/template/base.py" in render_annotated
- 957. return self.render(context)
- File "/usr/local/lib/python2.7/dist-packages/django/template/loader_tags.py" in render
- 177. return compiled_parent._render(context)
- File "/usr/local/lib/python2.7/dist-packages/django/template/base.py" in _render
- 199. return self.nodelist.render(context)
- File "/usr/local/lib/python2.7/dist-packages/django/template/base.py" in render
- 990. bit = node.render_annotated(context)
- File "/usr/local/lib/python2.7/dist-packages/django/template/base.py" in render_annotated
- 957. return self.render(context)
- File "/usr/local/lib/python2.7/dist-packages/django/template/loader_tags.py" in render
- 72. result = block.nodelist.render(context)
- File "/usr/local/lib/python2.7/dist-packages/django/template/base.py" in render
- 990. bit = node.render_annotated(context)
- File "/usr/local/lib/python2.7/dist-packages/django/template/base.py" in render_annotated
- 957. return self.render(context)
- File "/usr/local/lib/python2.7/dist-packages/django/template/base.py" in render
- 1040. output = self.filter_expression.resolve(context)
- File "/usr/local/lib/python2.7/dist-packages/django/template/base.py" in resolve
- 736. new_obj = func(obj, *arg_vals)
- File "/usr/local/lib/python2.7/dist-packages/crispy_forms/templatetags/crispy_forms_filters.py" in as_crispy_form
- 69. return template.render(c)
- File "/usr/local/lib/python2.7/dist-packages/django/template/backends/django.py" in render
- 64. context = make_context(context, request, autoescape=self.backend.engine.autoescape)
- File "/usr/local/lib/python2.7/dist-packages/django/template/context.py" in make_context
- 287. raise TypeError('context must be a dict rather than %s.' % context.__class__.__name__)
- Exception Type: TypeError at /
- Exception Value: context must be a dict rather than Context.
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy.
