Site working but sometimes raise error like this;
OperationalError at /
No exception message supplied
Request Method: GET
Request URL: http://hostdjango.pythonanywhere.com/
Django Version: 1.6.5
Exception Type: OperationalError
Exception Location: /usr/local/lib/python3.4/dist-packages/mysql/connector/connection.py in cursor, line 1328
Python Executable: /usr/local/bin/uwsgi
Python Version: 3.4.1
Python Path:
['/var/www',
'.',
'',
'/home/hostdjango/.local/lib/python3.4/site-packages',
'/usr/local/lib/python3.4/dist-packages/setuptools-5.4.2-py3.4.egg',
'/usr/local/lib/python3.4/dist-packages/matplotlib-1.3.1-py3.4-linux-x86_64.egg',
'/usr/local/lib/python3.4/dist-packages/nose-1.3.3-py3.4.egg',
'/usr/local/lib/python3.4/dist-packages/certifi-14.05.14-py3.4.egg',
'/var/www',
'/usr/lib/python3.4',
'/usr/lib/python3.4/plat-x86_64-linux-gnu',
'/usr/lib/python3.4/lib-dynload',
'/usr/local/lib/python3.4/dist-packages',
'/usr/lib/python3/dist-packages',
'/home/hostdjango/wen']
Server time: Thu, 21 Aug 2014 19:36:42 +0400
Traceback Switch to copy-and-paste view
/usr/local/lib/python3.4/dist-packages/django/core/handlers/base.py in get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs) ...
▶ Local vars
/home/hostdjango/wen/forum/views.py in forum
pages = current_page.page(page_number) ...
▶ Local vars
/usr/local/lib/python3.4/dist-packages/django/core/paginator.py in page
number = self.validate_number(number) ...
▶ Local vars
/usr/local/lib/python3.4/dist-packages/django/core/paginator.py in validate_number
if number > self.num_pages: ...
▶ Local vars
/usr/local/lib/python3.4/dist-packages/django/core/paginator.py in _get_num_pages
if self.count == 0 and not self.allow_empty_first_page: ...
▶ Local vars
/usr/local/lib/python3.4/dist-packages/django/core/paginator.py in _get_count
self._count = self.object_list.count() ...
▶ Local vars
/usr/local/lib/python3.4/dist-packages/django/db/models/query.py in count
return self.query.get_count(using=self.db) ...
▶ Local vars
/usr/local/lib/python3.4/dist-packages/django/db/models/sql/query.py in get_count
number = obj.get_aggregation(using=using)[None] ...
▶ Local vars
/usr/local/lib/python3.4/dist-packages/django/db/models/sql/query.py in get_aggregation
result = query.get_compiler(using).execute_sql(SINGLE) ...
▶ Local vars
/usr/local/lib/python3.4/dist-packages/django/db/models/sql/compiler.py in execute_sql
cursor = self.connection.cursor() ...
▶ Local vars
/usr/local/lib/python3.4/dist-packages/django/db/backends/__init__.py in cursor
cursor = self.make_debug_cursor(self._cursor()) ...
▶ Local vars
/usr/local/lib/python3.4/dist-packages/mysql/connector/django/base.py in _cursor
return super(DatabaseWrapper, self)._cursor() ...
▶ Local vars
/usr/local/lib/python3.4/dist-packages/django/db/backends/__init__.py in _cursor
return self.create_cursor() ...
▶ Local vars
/usr/local/lib/python3.4/dist-packages/django/db/utils.py in __exit__
six.reraise(dj_exc_type, dj_exc_value, traceback) ...
▶ Local vars
/usr/local/lib/python3.4/dist-packages/django/utils/six.py in reraise
raise value.with_traceback(tb) ...
▶ Local vars
/usr/local/lib/python3.4/dist-packages/django/db/backends/__init__.py in _cursor
return self.create_cursor() ...
▶ Local vars
/usr/local/lib/python3.4/dist-packages/mysql/connector/django/base.py in create_cursor
cursor = self.connection.cursor() ...
▶ Local vars
/usr/local/lib/python3.4/dist-packages/mysql/connector/connection.py in cursor
raise errors.OperationalError("MySQL Connection not available.") ...
▶ Local vars