daily pastebin goal
80%
SHARE
TWEET

Untitled

a guest Aug 1st, 2017 6 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Environment:
  2.  
  3.  
  4. Request Method: GET
  5. Request URL: http://127.0.0.1:8000/
  6.  
  7. Django Version: 1.11.3
  8. Python Version: 2.7.9
  9. Installed Applications:
  10. ['LEDs.apps.LedsConfig',
  11.  'django.contrib.admin',
  12.  'django.contrib.auth',
  13.  'django.contrib.contenttypes',
  14.  'django.contrib.sessions',
  15.  'django.contrib.messages',
  16.  'django.contrib.staticfiles',
  17.  'crispy_forms',
  18.  'registration']
  19. Installed Middleware:
  20. ['django.middleware.security.SecurityMiddleware',
  21.  'django.contrib.sessions.middleware.SessionMiddleware',
  22.  'django.middleware.common.CommonMiddleware',
  23.  'django.middleware.csrf.CsrfViewMiddleware',
  24.  'django.contrib.auth.middleware.AuthenticationMiddleware',
  25.  'django.contrib.messages.middleware.MessageMiddleware',
  26.  'django.middleware.clickjacking.XFrameOptionsMiddleware']
  27.  
  28.  
  29. Template error:
  30. In template /home/pi/Desktop/Leafsite/LEDs/templates/base.html, error at line 9
  31.    context must be a dict rather than Context.   1 : {% load staticfiles %}
  32.    2 :
  33.    3 : <!DOCTYPE html>
  34.    4 : <html lang="en">
  35.    5 : <head>
  36.    6 :    <meta charset="utf-8">
  37.    7 :   <meta name="viewport" content="width=device-width, initial-scale=1">
  38.    8 :   <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
  39.    9 :   <script src="https://aj ax.googleapis.com /ajax/libs/jquery/3.2.1/jquery.min.js"></script>
  40.    10 :   <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
  41.    11 :
  42.    12 :     <title>LED Control Site</title>
  43.    13 :
  44.    14 : </head>
  45.    15 :
  46.    16 : <body>
  47.    17 :
  48.    18 :
  49.    19 :
  50.  
  51.  
  52. Traceback:
  53.  
  54. File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/exception.py" in inner
  55.   41.             response = get_response(request)
  56.  
  57. File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py" in _get_response
  58.   187.                 response = self.process_exception_by_middleware(e, request)
  59.  
  60. File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py" in _get_response
  61.   185.                 response = wrapped_callback(request, *callback_args, **callback_kwargs)
  62.  
  63. File "/home/pi/Desktop/Leafsite/LEDs/views.py" in home
  64.   47.     return render(request, 'home.html', {'template_title': title,'form': form,'state': state})
  65.  
  66. File "/usr/local/lib/python2.7/dist-packages/django/shortcuts.py" in render
  67.   30.     content = loader.render_to_string(template_name, context, request, using=using)
  68.  
  69. File "/usr/local/lib/python2.7/dist-packages/django/template/loader.py" in render_to_string
  70.   68.     return template.render(context, request)
  71.  
  72. File "/usr/local/lib/python2.7/dist-packages/django/template/backends/django.py" in render
  73.   66.             return self.template.render(context)
  74.  
  75. File "/usr/local/lib/python2.7/dist-packages/django/template/base.py" in render
  76.   207.                     return self._render(context)
  77.  
  78. File "/usr/local/lib/python2.7/dist-packages/django/template/base.py" in _render
  79.   199.         return self.nodelist.render(context)
  80.  
  81. File "/usr/local/lib/python2.7/dist-packages/django/template/base.py" in render
  82.   990.                 bit = node.render_annotated(context)
  83.  
  84. File "/usr/local/lib/python2.7/dist-packages/django/template/base.py" in render_annotated
  85.   957.             return self.render(context)
  86.  
  87. File "/usr/local/lib/python2.7/dist-packages/django/template/loader_tags.py" in render
  88.   177.             return compiled_parent._render(context)
  89.  
  90. File "/usr/local/lib/python2.7/dist-packages/django/template/base.py" in _render
  91.   199.         return self.nodelist.render(context)
  92.  
  93. File "/usr/local/lib/python2.7/dist-packages/django/template/base.py" in render
  94.   990.                 bit = node.render_annotated(context)
  95.  
  96. File "/usr/local/lib/python2.7/dist-packages/django/template/base.py" in render_annotated
  97.   957.             return self.render(context)
  98.  
  99. File "/usr/local/lib/python2.7/dist-packages/django/template/loader_tags.py" in render
  100.   72.                 result = block.nodelist.render(context)
  101.  
  102. File "/usr/local/lib/python2.7/dist-packages/django/template/base.py" in render
  103.   990.                 bit = node.render_annotated(context)
  104.  
  105. File "/usr/local/lib/python2.7/dist-packages/django/template/base.py" in render_annotated
  106.   957.             return self.render(context)
  107.  
  108. File "/usr/local/lib/python2.7/dist-packages/django/template/base.py" in render
  109.   1040.             output = self.filter_expression.resolve(context)
  110.  
  111. File "/usr/local/lib/python2.7/dist-packages/django/template/base.py" in resolve
  112.   736.                 new_obj = func(obj, *arg_vals)
  113.  
  114. File "/usr/local/lib/python2.7/dist-packages/crispy_forms/templatetags/crispy_forms_filters.py" in as_crispy_form
  115.   69.     return template.render(c)
  116.  
  117. File "/usr/local/lib/python2.7/dist-packages/django/template/backends/django.py" in render
  118.   64.         context = make_context(context, request, autoescape=self.backend.engine.autoescape)
  119.  
  120. File "/usr/local/lib/python2.7/dist-packages/django/template/context.py" in make_context
  121.   287.         raise TypeError('context must be a dict rather than %s.' % context.__class__.__name__)
  122.  
  123. Exception Type: TypeError at /
  124. 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. OK, I Understand
 
Top