Guest User

Untitled

a guest
Jun 23rd, 2015
222
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.19 KB | None | 0 0
  1. Environment:
  2.  
  3.  
  4. Request Method: GET
  5. Request URL: http://wypok_spoko.pythonanywhere.com/polls/
  6.  
  7. Django Version: 1.8.2
  8. Python Version: 3.4.0
  9. Installed Applications:
  10. ('django.contrib.admin',
  11. 'django.contrib.auth',
  12. 'django.contrib.contenttypes',
  13. 'django.contrib.sessions',
  14. 'django.contrib.messages',
  15. 'django.contrib.staticfiles',
  16. 'polls')
  17. Installed Middleware:
  18. ('django.contrib.sessions.middleware.SessionMiddleware',
  19. 'django.middleware.common.CommonMiddleware',
  20. 'django.middleware.csrf.CsrfViewMiddleware',
  21. 'django.contrib.auth.middleware.AuthenticationMiddleware',
  22. 'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
  23. 'django.contrib.messages.middleware.MessageMiddleware',
  24. 'django.middleware.clickjacking.XFrameOptionsMiddleware',
  25. 'django.middleware.security.SecurityMiddleware')
  26.  
  27.  
  28. Template error:
  29. In template /home/wypok_spoko/ytdb/polls/templates/polls/index.html, error at line 13
  30. 1146
  31.  
  32. 3 : <table>
  33.  
  34.  
  35.  
  36. 4 : <tr><td>
  37.  
  38.  
  39.  
  40. 5 : Link: </td><td><input type="text" maxlength="255" name="link"/>
  41.  
  42.  
  43.  
  44. 6 : </td></tr>
  45.  
  46.  
  47.  
  48. 7 : <tr><td>
  49.  
  50.  
  51.  
  52. 8 : Owner: </td><td><input type="text" maxlength="50" name="own"/>
  53.  
  54.  
  55.  
  56. 9 : </td></tr>
  57.  
  58.  
  59.  
  60. 10 : </table>
  61.  
  62.  
  63.  
  64. 11 : <input type="submit" value="Add link!" />
  65.  
  66.  
  67.  
  68. 12 : </form>
  69.  
  70.  
  71.  
  72. 13 : {% if latest_links_list %}
  73.  
  74.  
  75.  
  76. 14 : <table style="border: 2px solid black">
  77.  
  78.  
  79.  
  80. 15 : {% for link in latest_links_list %}
  81.  
  82.  
  83.  
  84. 16 : <tr>
  85.  
  86.  
  87.  
  88. 17 : <td><a href="{% url 'polls:detail' link.id %}">{{ link.link }}</a></td>
  89.  
  90.  
  91.  
  92. 18 : <td>{{ link.own }}</td>
  93.  
  94.  
  95.  
  96. 19 : <td>{{ link.date_pub.date }}</td>
  97.  
  98.  
  99.  
  100. 20 : </tr>
  101.  
  102.  
  103.  
  104. 21 : {% endfor %}
  105.  
  106.  
  107.  
  108. 22 : </table>
  109.  
  110.  
  111.  
  112. 23 : {% else %}
  113.  
  114.  
  115. Traceback:
  116. File "/home/wypok_spoko/.virtualenvs/myvirtualenv/lib/python3.4/site-packages/django/core/handlers/base.py" in get_response
  117. 164. response = response.render()
  118. File "/home/wypok_spoko/.virtualenvs/myvirtualenv/lib/python3.4/site-packages/django/template/response.py" in render
  119. 158. self.content = self.rendered_content
  120. File "/home/wypok_spoko/.virtualenvs/myvirtualenv/lib/python3.4/site-packages/django/template/response.py" in rendered_content
  121. 135. content = template.render(context, self._request)
  122. File "/home/wypok_spoko/.virtualenvs/myvirtualenv/lib/python3.4/site-packages/django/template/backends/django.py" in render
  123. 74. return self.template.render(context)
  124. File "/home/wypok_spoko/.virtualenvs/myvirtualenv/lib/python3.4/site-packages/django/template/base.py" in render
  125. 209. return self._render(context)
  126. File "/home/wypok_spoko/.virtualenvs/myvirtualenv/lib/python3.4/site-packages/django/template/base.py" in _render
  127. 201. return self.nodelist.render(context)
  128. File "/home/wypok_spoko/.virtualenvs/myvirtualenv/lib/python3.4/site-packages/django/template/base.py" in render
  129. 903. bit = self.render_node(node, context)
  130. File "/home/wypok_spoko/.virtualenvs/myvirtualenv/lib/python3.4/site-packages/django/template/debug.py" in render_node
  131. 79. return node.render(context)
  132. File "/home/wypok_spoko/.virtualenvs/myvirtualenv/lib/python3.4/site-packages/django/template/defaulttags.py" in render
  133. 328. if match:
  134. File "/home/wypok_spoko/.virtualenvs/myvirtualenv/lib/python3.4/site-packages/django/db/models/query.py" in __bool__
  135. 166. self._fetch_all()
  136. File "/home/wypok_spoko/.virtualenvs/myvirtualenv/lib/python3.4/site-packages/django/db/models/query.py" in _fetch_all
  137. 965. self._result_cache = list(self.iterator())
  138. File "/home/wypok_spoko/.virtualenvs/myvirtualenv/lib/python3.4/site-packages/django/db/models/query.py" in iterator
  139. 238. results = compiler.execute_sql()
  140. File "/home/wypok_spoko/.virtualenvs/myvirtualenv/lib/python3.4/site-packages/django/db/models/sql/compiler.py" in execute_sql
  141. 840. cursor.execute(sql, params)
  142. File "/home/wypok_spoko/.virtualenvs/myvirtualenv/lib/python3.4/site-packages/django/db/backends/utils.py" in execute
  143. 79. return super(CursorDebugWrapper, self).execute(sql, params)
  144. File "/home/wypok_spoko/.virtualenvs/myvirtualenv/lib/python3.4/site-packages/django/db/backends/utils.py" in execute
  145. 64. return self.cursor.execute(sql, params)
  146. File "/home/wypok_spoko/.virtualenvs/myvirtualenv/lib/python3.4/site-packages/django/db/utils.py" in __exit__
  147. 97. six.reraise(dj_exc_type, dj_exc_value, traceback)
  148. File "/home/wypok_spoko/.virtualenvs/myvirtualenv/lib/python3.4/site-packages/django/utils/six.py" in reraise
  149. 658. raise value.with_traceback(tb)
  150. File "/home/wypok_spoko/.virtualenvs/myvirtualenv/lib/python3.4/site-packages/django/db/backends/utils.py" in execute
  151. 64. return self.cursor.execute(sql, params)
  152. File "/home/wypok_spoko/.virtualenvs/myvirtualenv/lib/python3.4/site-packages/django/db/backends/mysql/base.py" in execute
  153. 124. return self.cursor.execute(query, args)
  154. File "/home/wypok_spoko/.virtualenvs/myvirtualenv/lib/python3.4/site-packages/MySQLdb/cursors.py" in execute
  155. 220. self.errorhandler(self, exc, value)
  156. File "/home/wypok_spoko/.virtualenvs/myvirtualenv/lib/python3.4/site-packages/MySQLdb/connections.py" in defaulterrorhandler
  157. 36. raise errorvalue
  158. File "/home/wypok_spoko/.virtualenvs/myvirtualenv/lib/python3.4/site-packages/MySQLdb/cursors.py" in execute
  159. 209. r = self._query(query)
  160. File "/home/wypok_spoko/.virtualenvs/myvirtualenv/lib/python3.4/site-packages/MySQLdb/cursors.py" in _query
  161. 371. rowcount = self._do_query(q)
  162. File "/home/wypok_spoko/.virtualenvs/myvirtualenv/lib/python3.4/site-packages/MySQLdb/cursors.py" in _do_query
  163. 335. db.query(q)
  164. File "/home/wypok_spoko/.virtualenvs/myvirtualenv/lib/python3.4/site-packages/MySQLdb/connections.py" in query
  165. 280. _mysql.connection.query(self, query)
  166.  
  167. Exception Type: ProgrammingError at /polls/
  168. Exception Value: (1146, "Table 'wypok_spoko$youtubedb.polls_links' doesn't exist")
Advertisement
Add Comment
Please, Sign In to add comment