Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#23437 closed Cleanup/optimization (fixed)

RuntimeError: AppRegistryNotReady("Models aren't loaded yet.")

Reported by: Rostunov Sergey Owned by: nobody
Component: Documentation Version: dev
Severity: Normal Keywords:
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

Configuration:
Win7 x64
Apache/2.4.10 (Win32)
mod_wsgi/3.5
Python 3.4.1
Django-1.8.dev20140906003850-py3.4

C:\Apache24\conf\httpd.conf

Alias media/ "C:/Apache24/htdocs/xclassify/media"
<Directory C:/Apache24/htdocs/xclassify>
Order deny,allow
Allow from all
</Directory>
WSGIScriptAlias / "C:/Apache24/htdocs/xclassify/mod.wsgi"

C:\Apache24\htdocs\xclassify\mod.wsgi

import os, sys
sys.path.append('C:\\Apache24\\htdocs\\xclassify')
os.environ['DJANGO_SETTINGS_MODULE'] = 'xclassify.settings'
import django.core.handlers.wsgi
application = django.core.handlers.wsgi.WSGIHandler()

C:\Apache24\htdocs\xclassify\manage.py

#!/usr/bin/env python
import os
import sys
import django
if __name__ == "__main__":
    os.environ.setdefault("DJANGO_SETTINGS_MODULE", "xclassify.settings")
    django.setup()
    from django.core.management import execute_from_command_line
    execute_from_command_line(sys.argv)

When I open http://localhost/xclassify/ page, I get Internal Server Error ("GET /xclassify/ HTTP/1.1" 500 530)

Backtrace in error.log:

[Sat Sep 06 14:30:48.390949 2014] [:error] [pid 9808:tid 896] Internal Server Error: /xclassify/\r
[Sat Sep 06 14:30:48.391949 2014] [:error] [pid 9808:tid 896] Traceback (most recent call last):\r
[Sat Sep 06 14:30:48.391949 2014] [:error] [pid 9808:tid 896]   File "C:\\Python34\\lib\\site-packages\\django-1.8.dev20140906003850-py3.4.egg\\django\\contrib\\sessions\\backends\\base.py", line 177, in _get_session\r
[Sat Sep 06 14:30:48.391949 2014] [:error] [pid 9808:tid 896]     return self._session_cache\r
[Sat Sep 06 14:30:48.391949 2014] [:error] [pid 9808:tid 896] AttributeError: 'SessionStore' object has no attribute '_session_cache'\r
[Sat Sep 06 14:30:48.391949 2014] [:error] [pid 9808:tid 896] \r
[Sat Sep 06 14:30:48.391949 2014] [:error] [pid 9808:tid 896] During handling of the above exception, another exception occurred:\r
[Sat Sep 06 14:30:48.391949 2014] [:error] [pid 9808:tid 896] \r
[Sat Sep 06 14:30:48.391949 2014] [:error] [pid 9808:tid 896] Traceback (most recent call last):\r
[Sat Sep 06 14:30:48.391949 2014] [:error] [pid 9808:tid 896]   File "C:\\Python34\\lib\\site-packages\\django-1.8.dev20140906003850-py3.4.egg\\django\\db\\models\\options.py", line 404, in get_field_by_name\r
[Sat Sep 06 14:30:48.391949 2014] [:error] [pid 9808:tid 896]     return self._name_map[name]\r
[Sat Sep 06 14:30:48.391949 2014] [:error] [pid 9808:tid 896] AttributeError: 'Options' object has no attribute '_name_map'\r
[Sat Sep 06 14:30:48.391949 2014] [:error] [pid 9808:tid 896] \r
[Sat Sep 06 14:30:48.391949 2014] [:error] [pid 9808:tid 896] During handling of the above exception, another exception occurred:\r
[Sat Sep 06 14:30:48.391949 2014] [:error] [pid 9808:tid 896] \r
[Sat Sep 06 14:30:48.391949 2014] [:error] [pid 9808:tid 896] Traceback (most recent call last):\r
[Sat Sep 06 14:30:48.391949 2014] [:error] [pid 9808:tid 896]   File "C:\\Python34\\lib\\site-packages\\django-1.8.dev20140906003850-py3.4.egg\\django\\db\\models\\options.py", line 518, in get_all_related_m2m_objects_with_model\r
[Sat Sep 06 14:30:48.391949 2014] [:error] [pid 9808:tid 896]     cache = self._related_many_to_many_cache\r
[Sat Sep 06 14:30:48.391949 2014] [:error] [pid 9808:tid 896] AttributeError: 'Options' object has no attribute '_related_many_to_many_cache'\r
[Sat Sep 06 14:30:48.391949 2014] [:error] [pid 9808:tid 896] \r
[Sat Sep 06 14:30:48.391949 2014] [:error] [pid 9808:tid 896] During handling of the above exception, another exception occurred:\r
[Sat Sep 06 14:30:48.391949 2014] [:error] [pid 9808:tid 896] \r
[Sat Sep 06 14:30:48.391949 2014] [:error] [pid 9808:tid 896] Traceback (most recent call last):\r
[Sat Sep 06 14:30:48.391949 2014] [:error] [pid 9808:tid 896]   File "C:\\Python34\\lib\\site-packages\\django-1.8.dev20140906003850-py3.4.egg\\django\\core\\handlers\\base.py", line 101, in get_response\r
[Sat Sep 06 14:30:48.391949 2014] [:error] [pid 9808:tid 896]     response = middleware_method(request)\r
[Sat Sep 06 14:30:48.391949 2014] [:error] [pid 9808:tid 896]   File "C:\\Python34\\lib\\site-packages\\django-1.8.dev20140906003850-py3.4.egg\\django\\contrib\\auth\\middleware.py", line 34, in process_request\r
[Sat Sep 06 14:30:48.391949 2014] [:error] [pid 9808:tid 896]     if user and hasattr(user, 'get_session_auth_hash'):\r
[Sat Sep 06 14:30:48.391949 2014] [:error] [pid 9808:tid 896]   File "C:\\Python34\\lib\\site-packages\\django-1.8.dev20140906003850-py3.4.egg\\django\\utils\\functional.py", line 229, in inner\r
[Sat Sep 06 14:30:48.391949 2014] [:error] [pid 9808:tid 896]     self._setup()\r
[Sat Sep 06 14:30:48.391949 2014] [:error] [pid 9808:tid 896]   File "C:\\Python34\\lib\\site-packages\\django-1.8.dev20140906003850-py3.4.egg\\django\\utils\\functional.py", line 362, in _setup\r
[Sat Sep 06 14:30:48.391949 2014] [:error] [pid 9808:tid 896]     self._wrapped = self._setupfunc()\r
[Sat Sep 06 14:30:48.391949 2014] [:error] [pid 9808:tid 896]   File "C:\\Python34\\lib\\site-packages\\django-1.8.dev20140906003850-py3.4.egg\\django\\contrib\\auth\\middleware.py", line 23, in <lambda>\r
[Sat Sep 06 14:30:48.391949 2014] [:error] [pid 9808:tid 896]     request.user = SimpleLazyObject(lambda: get_user(request))\r
[Sat Sep 06 14:30:48.391949 2014] [:error] [pid 9808:tid 896]   File "C:\\Python34\\lib\\site-packages\\django-1.8.dev20140906003850-py3.4.egg\\django\\contrib\\auth\\middleware.py", line 11, in get_user\r
[Sat Sep 06 14:30:48.391949 2014] [:error] [pid 9808:tid 896]     request._cached_user = auth.get_user(request)\r
[Sat Sep 06 14:30:48.391949 2014] [:error] [pid 9808:tid 896]   File "C:\\Python34\\lib\\site-packages\\django-1.8.dev20140906003850-py3.4.egg\\django\\contrib\\auth\\__init__.py", line 155, in get_user\r
[Sat Sep 06 14:30:48.391949 2014] [:error] [pid 9808:tid 896]     user_id = request.session[SESSION_KEY]\r
[Sat Sep 06 14:30:48.391949 2014] [:error] [pid 9808:tid 896]   File "C:\\Python34\\lib\\site-packages\\django-1.8.dev20140906003850-py3.4.egg\\django\\contrib\\sessions\\backends\\base.py", line 49, in __getitem__\r
[Sat Sep 06 14:30:48.391949 2014] [:error] [pid 9808:tid 896]     return self._session[key]\r
[Sat Sep 06 14:30:48.391949 2014] [:error] [pid 9808:tid 896]   File "C:\\Python34\\lib\\site-packages\\django-1.8.dev20140906003850-py3.4.egg\\django\\contrib\\sessions\\backends\\base.py", line 182, in _get_session\r
[Sat Sep 06 14:30:48.391949 2014] [:error] [pid 9808:tid 896]     self._session_cache = self.load()\r
[Sat Sep 06 14:30:48.391949 2014] [:error] [pid 9808:tid 896]   File "C:\\Python34\\lib\\site-packages\\django-1.8.dev20140906003850-py3.4.egg\\django\\contrib\\sessions\\backends\\db.py", line 21, in load\r
[Sat Sep 06 14:30:48.391949 2014] [:error] [pid 9808:tid 896]     expire_date__gt=timezone.now()\r
[Sat Sep 06 14:30:48.391949 2014] [:error] [pid 9808:tid 896]   File "C:\\Python34\\lib\\site-packages\\django-1.8.dev20140906003850-py3.4.egg\\django\\db\\models\\manager.py", line 86, in manager_method\r
[Sat Sep 06 14:30:48.391949 2014] [:error] [pid 9808:tid 896]     return getattr(self.get_queryset(), name)(*args, **kwargs)\r
[Sat Sep 06 14:30:48.391949 2014] [:error] [pid 9808:tid 896]   File "C:\\Python34\\lib\\site-packages\\django-1.8.dev20140906003850-py3.4.egg\\django\\db\\models\\query.py", line 357, in get\r
[Sat Sep 06 14:30:48.391949 2014] [:error] [pid 9808:tid 896]     clone = self.filter(*args, **kwargs)\r
[Sat Sep 06 14:30:48.391949 2014] [:error] [pid 9808:tid 896]   File "C:\\Python34\\lib\\site-packages\\django-1.8.dev20140906003850-py3.4.egg\\django\\db\\models\\query.py", line 702, in filter\r
[Sat Sep 06 14:30:48.391949 2014] [:error] [pid 9808:tid 896]     return self._filter_or_exclude(False, *args, **kwargs)\r
[Sat Sep 06 14:30:48.391949 2014] [:error] [pid 9808:tid 896]   File "C:\\Python34\\lib\\site-packages\\django-1.8.dev20140906003850-py3.4.egg\\django\\db\\models\\query.py", line 720, in _filter_or_exclude\r
[Sat Sep 06 14:30:48.391949 2014] [:error] [pid 9808:tid 896]     clone.query.add_q(Q(*args, **kwargs))\r
[Sat Sep 06 14:30:48.391949 2014] [:error] [pid 9808:tid 896]   File "C:\\Python34\\lib\\site-packages\\django-1.8.dev20140906003850-py3.4.egg\\django\\db\\models\\sql\\query.py", line 1319, in add_q\r
[Sat Sep 06 14:30:48.391949 2014] [:error] [pid 9808:tid 896]     clause, require_inner = self._add_q(where_part, self.used_aliases)\r
[Sat Sep 06 14:30:48.391949 2014] [:error] [pid 9808:tid 896]   File "C:\\Python34\\lib\\site-packages\\django-1.8.dev20140906003850-py3.4.egg\\django\\db\\models\\sql\\query.py", line 1346, in _add_q\r
[Sat Sep 06 14:30:48.391949 2014] [:error] [pid 9808:tid 896]     current_negated=current_negated, connector=connector)\r
[Sat Sep 06 14:30:48.391949 2014] [:error] [pid 9808:tid 896]   File "C:\\Python34\\lib\\site-packages\\django-1.8.dev20140906003850-py3.4.egg\\django\\db\\models\\sql\\query.py", line 1167, in build_filter\r
[Sat Sep 06 14:30:48.391949 2014] [:error] [pid 9808:tid 896]     lookups, parts, reffed_aggregate = self.solve_lookup_type(arg)\r
[Sat Sep 06 14:30:48.391949 2014] [:error] [pid 9808:tid 896]   File "C:\\Python34\\lib\\site-packages\\django-1.8.dev20140906003850-py3.4.egg\\django\\db\\models\\sql\\query.py", line 1068, in solve_lookup_type\r
[Sat Sep 06 14:30:48.391949 2014] [:error] [pid 9808:tid 896]     _, field, _, lookup_parts = self.names_to_path(lookup_splitted, self.get_meta())\r
[Sat Sep 06 14:30:48.391949 2014] [:error] [pid 9808:tid 896]   File "C:\\Python34\\lib\\site-packages\\django-1.8.dev20140906003850-py3.4.egg\\django\\db\\models\\sql\\query.py", line 1371, in names_to_path\r
[Sat Sep 06 14:30:48.391949 2014] [:error] [pid 9808:tid 896]     field, model, direct, m2m = opts.get_field_by_name(name)\r
[Sat Sep 06 14:30:48.391949 2014] [:error] [pid 9808:tid 896]   File "C:\\Python34\\lib\\site-packages\\django-1.8.dev20140906003850-py3.4.egg\\django\\db\\models\\options.py", line 406, in get_field_by_name\r
[Sat Sep 06 14:30:48.391949 2014] [:error] [pid 9808:tid 896]     cache = self.init_name_map()\r
[Sat Sep 06 14:30:48.391949 2014] [:error] [pid 9808:tid 896]   File "C:\\Python34\\lib\\site-packages\\django-1.8.dev20140906003850-py3.4.egg\\django\\db\\models\\options.py", line 435, in init_name_map\r
[Sat Sep 06 14:30:48.391949 2014] [:error] [pid 9808:tid 896]     for f, model in self.get_all_related_m2m_objects_with_model():\r
[Sat Sep 06 14:30:48.391949 2014] [:error] [pid 9808:tid 896]   File "C:\\Python34\\lib\\site-packages\\django-1.8.dev20140906003850-py3.4.egg\\django\\db\\models\\options.py", line 520, in get_all_related_m2m_objects_with_model\r
[Sat Sep 06 14:30:48.391949 2014] [:error] [pid 9808:tid 896]     cache = self._fill_related_many_to_many_cache()\r
[Sat Sep 06 14:30:48.391949 2014] [:error] [pid 9808:tid 896]   File "C:\\Python34\\lib\\site-packages\\django-1.8.dev20140906003850-py3.4.egg\\django\\db\\models\\options.py", line 534, in _fill_related_many_to_many_cache\r
[Sat Sep 06 14:30:48.391949 2014] [:error] [pid 9808:tid 896]     for klass in self.apps.get_models():\r
[Sat Sep 06 14:30:48.391949 2014] [:error] [pid 9808:tid 896]   File "C:\\Python34\\Lib\\functools.py", line 428, in wrapper\r
[Sat Sep 06 14:30:48.391949 2014] [:error] [pid 9808:tid 896]     result = user_function(*args, **kwds)\r
[Sat Sep 06 14:30:48.391949 2014] [:error] [pid 9808:tid 896]   File "C:\\Python34\\lib\\site-packages\\django-1.8.dev20140906003850-py3.4.egg\\django\\apps\\registry.py", line 168, in get_models\r
[Sat Sep 06 14:30:48.391949 2014] [:error] [pid 9808:tid 896]     self.check_models_ready()\r
[Sat Sep 06 14:30:48.391949 2014] [:error] [pid 9808:tid 896]   File "C:\\Python34\\lib\\site-packages\\django-1.8.dev20140906003850-py3.4.egg\\django\\apps\\registry.py", line 131, in check_models_ready\r
[Sat Sep 06 14:30:48.391949 2014] [:error] [pid 9808:tid 896]     raise AppRegistryNotReady("Models aren't loaded yet.")\r
[Sat Sep 06 14:30:48.391949 2014] [:error] [pid 9808:tid 896] django.core.exceptions.AppRegistryNotReady: Models aren't loaded yet.
[Sat Sep 06 14:30:48.391949 2014] [:error] [pid 9808:tid 896] \r
[Sat Sep 06 14:30:48.414950 2014] [:error] [pid 9808:tid 896] [client ::1:50710] mod_wsgi (pid=9808): Exception occurred processing WSGI script 'C:/Apache24/htdocs/xclassify/mod.wsgi'.
[Sat Sep 06 14:30:48.414950 2014] [:error] [pid 9808:tid 896] [client ::1:50710] Traceback (most recent call last):\r
[Sat Sep 06 14:30:48.414950 2014] [:error] [pid 9808:tid 896] [client ::1:50710]   File "C:\\Python34\\lib\\site-packages\\django-1.8.dev20140906003850-py3.4.egg\\django\\contrib\\sessions\\backends\\base.py", line 177, in _get_session\r
[Sat Sep 06 14:30:48.414950 2014] [:error] [pid 9808:tid 896] [client ::1:50710]     return self._session_cache\r
[Sat Sep 06 14:30:48.414950 2014] [:error] [pid 9808:tid 896] [client ::1:50710] AttributeError: 'SessionStore' object has no attribute '_session_cache'\r
[Sat Sep 06 14:30:48.414950 2014] [:error] [pid 9808:tid 896] [client ::1:50710] \r
[Sat Sep 06 14:30:48.414950 2014] [:error] [pid 9808:tid 896] [client ::1:50710] During handling of the above exception, another exception occurred:\r
[Sat Sep 06 14:30:48.414950 2014] [:error] [pid 9808:tid 896] [client ::1:50710] \r
[Sat Sep 06 14:30:48.414950 2014] [:error] [pid 9808:tid 896] [client ::1:50710] Traceback (most recent call last):\r
[Sat Sep 06 14:30:48.414950 2014] [:error] [pid 9808:tid 896] [client ::1:50710]   File "C:\\Python34\\lib\\site-packages\\django-1.8.dev20140906003850-py3.4.egg\\django\\db\\models\\options.py", line 404, in get_field_by_name\r
[Sat Sep 06 14:30:48.414950 2014] [:error] [pid 9808:tid 896] [client ::1:50710]     return self._name_map[name]\r
[Sat Sep 06 14:30:48.414950 2014] [:error] [pid 9808:tid 896] [client ::1:50710] AttributeError: 'Options' object has no attribute '_name_map'\r
[Sat Sep 06 14:30:48.414950 2014] [:error] [pid 9808:tid 896] [client ::1:50710] \r
[Sat Sep 06 14:30:48.414950 2014] [:error] [pid 9808:tid 896] [client ::1:50710] During handling of the above exception, another exception occurred:\r
[Sat Sep 06 14:30:48.414950 2014] [:error] [pid 9808:tid 896] [client ::1:50710] \r
[Sat Sep 06 14:30:48.414950 2014] [:error] [pid 9808:tid 896] [client ::1:50710] Traceback (most recent call last):\r
[Sat Sep 06 14:30:48.415950 2014] [:error] [pid 9808:tid 896] [client ::1:50710]   File "C:\\Python34\\lib\\site-packages\\django-1.8.dev20140906003850-py3.4.egg\\django\\db\\models\\options.py", line 518, in get_all_related_m2m_objects_with_model\r
[Sat Sep 06 14:30:48.415950 2014] [:error] [pid 9808:tid 896] [client ::1:50710]     cache = self._related_many_to_many_cache\r
[Sat Sep 06 14:30:48.415950 2014] [:error] [pid 9808:tid 896] [client ::1:50710] AttributeError: 'Options' object has no attribute '_related_many_to_many_cache'\r
[Sat Sep 06 14:30:48.415950 2014] [:error] [pid 9808:tid 896] [client ::1:50710] \r
[Sat Sep 06 14:30:48.415950 2014] [:error] [pid 9808:tid 896] [client ::1:50710] During handling of the above exception, another exception occurred:\r
[Sat Sep 06 14:30:48.415950 2014] [:error] [pid 9808:tid 896] [client ::1:50710] \r
[Sat Sep 06 14:30:48.415950 2014] [:error] [pid 9808:tid 896] [client ::1:50710] Traceback (most recent call last):\r
[Sat Sep 06 14:30:48.415950 2014] [:error] [pid 9808:tid 896] [client ::1:50710]   File "C:\\Python34\\lib\\site-packages\\django-1.8.dev20140906003850-py3.4.egg\\django\\core\\handlers\\base.py", line 101, in get_response\r
[Sat Sep 06 14:30:48.415950 2014] [:error] [pid 9808:tid 896] [client ::1:50710]     response = middleware_method(request)\r
[Sat Sep 06 14:30:48.415950 2014] [:error] [pid 9808:tid 896] [client ::1:50710]   File "C:\\Python34\\lib\\site-packages\\django-1.8.dev20140906003850-py3.4.egg\\django\\contrib\\auth\\middleware.py", line 34, in process_request\r
[Sat Sep 06 14:30:48.415950 2014] [:error] [pid 9808:tid 896] [client ::1:50710]     if user and hasattr(user, 'get_session_auth_hash'):\r
[Sat Sep 06 14:30:48.415950 2014] [:error] [pid 9808:tid 896] [client ::1:50710]   File "C:\\Python34\\lib\\site-packages\\django-1.8.dev20140906003850-py3.4.egg\\django\\utils\\functional.py", line 229, in inner\r
[Sat Sep 06 14:30:48.415950 2014] [:error] [pid 9808:tid 896] [client ::1:50710]     self._setup()\r
[Sat Sep 06 14:30:48.416950 2014] [:error] [pid 9808:tid 896] [client ::1:50710]   File "C:\\Python34\\lib\\site-packages\\django-1.8.dev20140906003850-py3.4.egg\\django\\utils\\functional.py", line 362, in _setup\r
[Sat Sep 06 14:30:48.416950 2014] [:error] [pid 9808:tid 896] [client ::1:50710]     self._wrapped = self._setupfunc()\r
[Sat Sep 06 14:30:48.416950 2014] [:error] [pid 9808:tid 896] [client ::1:50710]   File "C:\\Python34\\lib\\site-packages\\django-1.8.dev20140906003850-py3.4.egg\\django\\contrib\\auth\\middleware.py", line 23, in <lambda>\r
[Sat Sep 06 14:30:48.416950 2014] [:error] [pid 9808:tid 896] [client ::1:50710]     request.user = SimpleLazyObject(lambda: get_user(request))\r
[Sat Sep 06 14:30:48.416950 2014] [:error] [pid 9808:tid 896] [client ::1:50710]   File "C:\\Python34\\lib\\site-packages\\django-1.8.dev20140906003850-py3.4.egg\\django\\contrib\\auth\\middleware.py", line 11, in get_user\r
[Sat Sep 06 14:30:48.416950 2014] [:error] [pid 9808:tid 896] [client ::1:50710]     request._cached_user = auth.get_user(request)\r
[Sat Sep 06 14:30:48.416950 2014] [:error] [pid 9808:tid 896] [client ::1:50710]   File "C:\\Python34\\lib\\site-packages\\django-1.8.dev20140906003850-py3.4.egg\\django\\contrib\\auth\\__init__.py", line 155, in get_user\r
[Sat Sep 06 14:30:48.416950 2014] [:error] [pid 9808:tid 896] [client ::1:50710]     user_id = request.session[SESSION_KEY]\r
[Sat Sep 06 14:30:48.416950 2014] [:error] [pid 9808:tid 896] [client ::1:50710]   File "C:\\Python34\\lib\\site-packages\\django-1.8.dev20140906003850-py3.4.egg\\django\\contrib\\sessions\\backends\\base.py", line 49, in __getitem__\r
[Sat Sep 06 14:30:48.416950 2014] [:error] [pid 9808:tid 896] [client ::1:50710]     return self._session[key]\r
[Sat Sep 06 14:30:48.417950 2014] [:error] [pid 9808:tid 896] [client ::1:50710]   File "C:\\Python34\\lib\\site-packages\\django-1.8.dev20140906003850-py3.4.egg\\django\\contrib\\sessions\\backends\\base.py", line 182, in _get_session\r
[Sat Sep 06 14:30:48.417950 2014] [:error] [pid 9808:tid 896] [client ::1:50710]     self._session_cache = self.load()\r
[Sat Sep 06 14:30:48.417950 2014] [:error] [pid 9808:tid 896] [client ::1:50710]   File "C:\\Python34\\lib\\site-packages\\django-1.8.dev20140906003850-py3.4.egg\\django\\contrib\\sessions\\backends\\db.py", line 21, in load\r
[Sat Sep 06 14:30:48.417950 2014] [:error] [pid 9808:tid 896] [client ::1:50710]     expire_date__gt=timezone.now()\r
[Sat Sep 06 14:30:48.417950 2014] [:error] [pid 9808:tid 896] [client ::1:50710]   File "C:\\Python34\\lib\\site-packages\\django-1.8.dev20140906003850-py3.4.egg\\django\\db\\models\\manager.py", line 86, in manager_method\r
[Sat Sep 06 14:30:48.417950 2014] [:error] [pid 9808:tid 896] [client ::1:50710]     return getattr(self.get_queryset(), name)(*args, **kwargs)\r
[Sat Sep 06 14:30:48.417950 2014] [:error] [pid 9808:tid 896] [client ::1:50710]   File "C:\\Python34\\lib\\site-packages\\django-1.8.dev20140906003850-py3.4.egg\\django\\db\\models\\query.py", line 357, in get\r
[Sat Sep 06 14:30:48.417950 2014] [:error] [pid 9808:tid 896] [client ::1:50710]     clone = self.filter(*args, **kwargs)\r
[Sat Sep 06 14:30:48.417950 2014] [:error] [pid 9808:tid 896] [client ::1:50710]   File "C:\\Python34\\lib\\site-packages\\django-1.8.dev20140906003850-py3.4.egg\\django\\db\\models\\query.py", line 702, in filter\r
[Sat Sep 06 14:30:48.417950 2014] [:error] [pid 9808:tid 896] [client ::1:50710]     return self._filter_or_exclude(False, *args, **kwargs)\r
[Sat Sep 06 14:30:48.418950 2014] [:error] [pid 9808:tid 896] [client ::1:50710]   File "C:\\Python34\\lib\\site-packages\\django-1.8.dev20140906003850-py3.4.egg\\django\\db\\models\\query.py", line 720, in _filter_or_exclude\r
[Sat Sep 06 14:30:48.418950 2014] [:error] [pid 9808:tid 896] [client ::1:50710]     clone.query.add_q(Q(*args, **kwargs))\r
[Sat Sep 06 14:30:48.418950 2014] [:error] [pid 9808:tid 896] [client ::1:50710]   File "C:\\Python34\\lib\\site-packages\\django-1.8.dev20140906003850-py3.4.egg\\django\\db\\models\\sql\\query.py", line 1319, in add_q\r
[Sat Sep 06 14:30:48.418950 2014] [:error] [pid 9808:tid 896] [client ::1:50710]     clause, require_inner = self._add_q(where_part, self.used_aliases)\r
[Sat Sep 06 14:30:48.418950 2014] [:error] [pid 9808:tid 896] [client ::1:50710]   File "C:\\Python34\\lib\\site-packages\\django-1.8.dev20140906003850-py3.4.egg\\django\\db\\models\\sql\\query.py", line 1346, in _add_q\r
[Sat Sep 06 14:30:48.418950 2014] [:error] [pid 9808:tid 896] [client ::1:50710]     current_negated=current_negated, connector=connector)\r
[Sat Sep 06 14:30:48.418950 2014] [:error] [pid 9808:tid 896] [client ::1:50710]   File "C:\\Python34\\lib\\site-packages\\django-1.8.dev20140906003850-py3.4.egg\\django\\db\\models\\sql\\query.py", line 1167, in build_filter\r
[Sat Sep 06 14:30:48.418950 2014] [:error] [pid 9808:tid 896] [client ::1:50710]     lookups, parts, reffed_aggregate = self.solve_lookup_type(arg)\r
[Sat Sep 06 14:30:48.418950 2014] [:error] [pid 9808:tid 896] [client ::1:50710]   File "C:\\Python34\\lib\\site-packages\\django-1.8.dev20140906003850-py3.4.egg\\django\\db\\models\\sql\\query.py", line 1068, in solve_lookup_type\r
[Sat Sep 06 14:30:48.418950 2014] [:error] [pid 9808:tid 896] [client ::1:50710]     _, field, _, lookup_parts = self.names_to_path(lookup_splitted, self.get_meta())\r
[Sat Sep 06 14:30:48.419950 2014] [:error] [pid 9808:tid 896] [client ::1:50710]   File "C:\\Python34\\lib\\site-packages\\django-1.8.dev20140906003850-py3.4.egg\\django\\db\\models\\sql\\query.py", line 1371, in names_to_path\r
[Sat Sep 06 14:30:48.419950 2014] [:error] [pid 9808:tid 896] [client ::1:50710]     field, model, direct, m2m = opts.get_field_by_name(name)\r
[Sat Sep 06 14:30:48.419950 2014] [:error] [pid 9808:tid 896] [client ::1:50710]   File "C:\\Python34\\lib\\site-packages\\django-1.8.dev20140906003850-py3.4.egg\\django\\db\\models\\options.py", line 406, in get_field_by_name\r
[Sat Sep 06 14:30:48.419950 2014] [:error] [pid 9808:tid 896] [client ::1:50710]     cache = self.init_name_map()\r
[Sat Sep 06 14:30:48.419950 2014] [:error] [pid 9808:tid 896] [client ::1:50710]   File "C:\\Python34\\lib\\site-packages\\django-1.8.dev20140906003850-py3.4.egg\\django\\db\\models\\options.py", line 435, in init_name_map\r
[Sat Sep 06 14:30:48.419950 2014] [:error] [pid 9808:tid 896] [client ::1:50710]     for f, model in self.get_all_related_m2m_objects_with_model():\r
[Sat Sep 06 14:30:48.419950 2014] [:error] [pid 9808:tid 896] [client ::1:50710]   File "C:\\Python34\\lib\\site-packages\\django-1.8.dev20140906003850-py3.4.egg\\django\\db\\models\\options.py", line 520, in get_all_related_m2m_objects_with_model\r
[Sat Sep 06 14:30:48.419950 2014] [:error] [pid 9808:tid 896] [client ::1:50710]     cache = self._fill_related_many_to_many_cache()\r
[Sat Sep 06 14:30:48.419950 2014] [:error] [pid 9808:tid 896] [client ::1:50710]   File "C:\\Python34\\lib\\site-packages\\django-1.8.dev20140906003850-py3.4.egg\\django\\db\\models\\options.py", line 534, in _fill_related_many_to_many_cache\r
[Sat Sep 06 14:30:48.419950 2014] [:error] [pid 9808:tid 896] [client ::1:50710]     for klass in self.apps.get_models():\r
[Sat Sep 06 14:30:48.420950 2014] [:error] [pid 9808:tid 896] [client ::1:50710]   File "C:\\Python34\\Lib\\functools.py", line 428, in wrapper\r
[Sat Sep 06 14:30:48.420950 2014] [:error] [pid 9808:tid 896] [client ::1:50710]     result = user_function(*args, **kwds)\r
[Sat Sep 06 14:30:48.420950 2014] [:error] [pid 9808:tid 896] [client ::1:50710]   File "C:\\Python34\\lib\\site-packages\\django-1.8.dev20140906003850-py3.4.egg\\django\\apps\\registry.py", line 168, in get_models\r
[Sat Sep 06 14:30:48.420950 2014] [:error] [pid 9808:tid 896] [client ::1:50710]     self.check_models_ready()\r
[Sat Sep 06 14:30:48.420950 2014] [:error] [pid 9808:tid 896] [client ::1:50710]   File "C:\\Python34\\lib\\site-packages\\django-1.8.dev20140906003850-py3.4.egg\\django\\apps\\registry.py", line 131, in check_models_ready\r
[Sat Sep 06 14:30:48.420950 2014] [:error] [pid 9808:tid 896] [client ::1:50710]     raise AppRegistryNotReady("Models aren't loaded yet.")\r
[Sat Sep 06 14:30:48.420950 2014] [:error] [pid 9808:tid 896] [client ::1:50710] django.core.exceptions.AppRegistryNotReady: Models aren't loaded yet.\r
[Sat Sep 06 14:30:48.420950 2014] [:error] [pid 9808:tid 896] [client ::1:50710] \r
[Sat Sep 06 14:30:48.420950 2014] [:error] [pid 9808:tid 896] [client ::1:50710] During handling of the above exception, another exception occurred:\r
[Sat Sep 06 14:30:48.420950 2014] [:error] [pid 9808:tid 896] [client ::1:50710] \r
[Sat Sep 06 14:30:48.420950 2014] [:error] [pid 9808:tid 896] [client ::1:50710] Traceback (most recent call last):\r
[Sat Sep 06 14:30:48.420950 2014] [:error] [pid 9808:tid 896] [client ::1:50710]   File "C:\\Python34\\lib\\site-packages\\django-1.8.dev20140906003850-py3.4.egg\\django\\contrib\\sessions\\backends\\base.py", line 177, in _get_session\r
[Sat Sep 06 14:30:48.420950 2014] [:error] [pid 9808:tid 896] [client ::1:50710]     return self._session_cache\r
[Sat Sep 06 14:30:48.420950 2014] [:error] [pid 9808:tid 896] [client ::1:50710] AttributeError: 'SessionStore' object has no attribute '_session_cache'\r
[Sat Sep 06 14:30:48.420950 2014] [:error] [pid 9808:tid 896] [client ::1:50710] \r
[Sat Sep 06 14:30:48.420950 2014] [:error] [pid 9808:tid 896] [client ::1:50710] During handling of the above exception, another exception occurred:\r
[Sat Sep 06 14:30:48.420950 2014] [:error] [pid 9808:tid 896] [client ::1:50710] \r
[Sat Sep 06 14:30:48.420950 2014] [:error] [pid 9808:tid 896] [client ::1:50710] Traceback (most recent call last):\r
[Sat Sep 06 14:30:48.421950 2014] [:error] [pid 9808:tid 896] [client ::1:50710]   File "C:\\Python34\\lib\\site-packages\\django-1.8.dev20140906003850-py3.4.egg\\django\\db\\models\\options.py", line 404, in get_field_by_name\r
[Sat Sep 06 14:30:48.421950 2014] [:error] [pid 9808:tid 896] [client ::1:50710]     return self._name_map[name]\r
[Sat Sep 06 14:30:48.421950 2014] [:error] [pid 9808:tid 896] [client ::1:50710] AttributeError: 'Options' object has no attribute '_name_map'\r
[Sat Sep 06 14:30:48.421950 2014] [:error] [pid 9808:tid 896] [client ::1:50710] \r
[Sat Sep 06 14:30:48.421950 2014] [:error] [pid 9808:tid 896] [client ::1:50710] During handling of the above exception, another exception occurred:\r
[Sat Sep 06 14:30:48.421950 2014] [:error] [pid 9808:tid 896] [client ::1:50710] \r
[Sat Sep 06 14:30:48.421950 2014] [:error] [pid 9808:tid 896] [client ::1:50710] Traceback (most recent call last):\r
[Sat Sep 06 14:30:48.421950 2014] [:error] [pid 9808:tid 896] [client ::1:50710]   File "C:\\Python34\\lib\\site-packages\\django-1.8.dev20140906003850-py3.4.egg\\django\\db\\models\\options.py", line 518, in get_all_related_m2m_objects_with_model\r
[Sat Sep 06 14:30:48.421950 2014] [:error] [pid 9808:tid 896] [client ::1:50710]     cache = self._related_many_to_many_cache\r
[Sat Sep 06 14:30:48.421950 2014] [:error] [pid 9808:tid 896] [client ::1:50710] AttributeError: 'Options' object has no attribute '_related_many_to_many_cache'\r
[Sat Sep 06 14:30:48.421950 2014] [:error] [pid 9808:tid 896] [client ::1:50710] \r
[Sat Sep 06 14:30:48.421950 2014] [:error] [pid 9808:tid 896] [client ::1:50710] During handling of the above exception, another exception occurred:\r
[Sat Sep 06 14:30:48.421950 2014] [:error] [pid 9808:tid 896] [client ::1:50710] \r
[Sat Sep 06 14:30:48.421950 2014] [:error] [pid 9808:tid 896] [client ::1:50710] Traceback (most recent call last):\r
[Sat Sep 06 14:30:48.422950 2014] [:error] [pid 9808:tid 896] [client ::1:50710]   File "C:\\Python34\\lib\\site-packages\\django-1.8.dev20140906003850-py3.4.egg\\django\\core\\handlers\\wsgi.py", line 191, in __call__\r
[Sat Sep 06 14:30:48.422950 2014] [:error] [pid 9808:tid 896] [client ::1:50710]     response = self.get_response(request)\r
[Sat Sep 06 14:30:48.422950 2014] [:error] [pid 9808:tid 896] [client ::1:50710]   File "C:\\Python34\\lib\\site-packages\\django-1.8.dev20140906003850-py3.4.egg\\django\\core\\handlers\\base.py", line 202, in get_response\r
[Sat Sep 06 14:30:48.422950 2014] [:error] [pid 9808:tid 896] [client ::1:50710]     response = self.handle_uncaught_exception(request, resolver, sys.exc_info())\r
[Sat Sep 06 14:30:48.422950 2014] [:error] [pid 9808:tid 896] [client ::1:50710]   File "C:\\Python34\\lib\\site-packages\\django-1.8.dev20140906003850-py3.4.egg\\django\\core\\handlers\\base.py", line 245, in handle_uncaught_exception\r
[Sat Sep 06 14:30:48.422950 2014] [:error] [pid 9808:tid 896] [client ::1:50710]     return debug.technical_500_response(request, *exc_info)\r
[Sat Sep 06 14:30:48.422950 2014] [:error] [pid 9808:tid 896] [client ::1:50710]   File "C:\\Python34\\lib\\site-packages\\django-1.8.dev20140906003850-py3.4.egg\\django\\views\\debug.py", line 93, in technical_500_response\r
[Sat Sep 06 14:30:48.422950 2014] [:error] [pid 9808:tid 896] [client ::1:50710]     html = reporter.get_traceback_html()\r
[Sat Sep 06 14:30:48.423951 2014] [:error] [pid 9808:tid 896] [client ::1:50710]   File "C:\\Python34\\lib\\site-packages\\django-1.8.dev20140906003850-py3.4.egg\\django\\views\\debug.py", line 364, in get_traceback_html\r
[Sat Sep 06 14:30:48.423951 2014] [:error] [pid 9808:tid 896] [client ::1:50710]     c = Context(self.get_traceback_data(), use_l10n=False)\r
[Sat Sep 06 14:30:48.423951 2014] [:error] [pid 9808:tid 896] [client ::1:50710]   File "C:\\Python34\\lib\\site-packages\\django-1.8.dev20140906003850-py3.4.egg\\django\\views\\debug.py", line 309, in get_traceback_data\r
[Sat Sep 06 14:30:48.423951 2014] [:error] [pid 9808:tid 896] [client ::1:50710]     frames = self.get_traceback_frames()\r
[Sat Sep 06 14:30:48.423951 2014] [:error] [pid 9808:tid 896] [client ::1:50710]   File "C:\\Python34\\lib\\site-packages\\django-1.8.dev20140906003850-py3.4.egg\\django\\views\\debug.py", line 482, in get_traceback_frames\r
[Sat Sep 06 14:30:48.423951 2014] [:error] [pid 9808:tid 896] [client ::1:50710]     'vars': self.filter.get_traceback_frame_variables(self.request, tb.tb_frame),\r
[Sat Sep 06 14:30:48.423951 2014] [:error] [pid 9808:tid 896] [client ::1:50710]   File "C:\\Python34\\lib\\site-packages\\django-1.8.dev20140906003850-py3.4.egg\\django\\views\\debug.py", line 234, in get_traceback_frame_variables\r
[Sat Sep 06 14:30:48.423951 2014] [:error] [pid 9808:tid 896] [client ::1:50710]     cleansed[name] = self.cleanse_special_types(request, value)\r
[Sat Sep 06 14:30:48.423951 2014] [:error] [pid 9808:tid 896] [client ::1:50710]   File "C:\\Python34\\lib\\site-packages\\django-1.8.dev20140906003850-py3.4.egg\\django\\views\\debug.py", line 189, in cleanse_special_types\r
[Sat Sep 06 14:30:48.423951 2014] [:error] [pid 9808:tid 896] [client ::1:50710]     if isinstance(value, HttpRequest):\r
[Sat Sep 06 14:30:48.424951 2014] [:error] [pid 9808:tid 896] [client ::1:50710]   File "C:\\Python34\\lib\\site-packages\\django-1.8.dev20140906003850-py3.4.egg\\django\\utils\\functional.py", line 229, in inner\r
[Sat Sep 06 14:30:48.424951 2014] [:error] [pid 9808:tid 896] [client ::1:50710]     self._setup()\r
[Sat Sep 06 14:30:48.424951 2014] [:error] [pid 9808:tid 896] [client ::1:50710]   File "C:\\Python34\\lib\\site-packages\\django-1.8.dev20140906003850-py3.4.egg\\django\\utils\\functional.py", line 362, in _setup\r
[Sat Sep 06 14:30:48.424951 2014] [:error] [pid 9808:tid 896] [client ::1:50710]     self._wrapped = self._setupfunc()\r
[Sat Sep 06 14:30:48.424951 2014] [:error] [pid 9808:tid 896] [client ::1:50710]   File "C:\\Python34\\lib\\site-packages\\django-1.8.dev20140906003850-py3.4.egg\\django\\contrib\\auth\\middleware.py", line 23, in <lambda>\r
[Sat Sep 06 14:30:48.424951 2014] [:error] [pid 9808:tid 896] [client ::1:50710]     request.user = SimpleLazyObject(lambda: get_user(request))\r
[Sat Sep 06 14:30:48.424951 2014] [:error] [pid 9808:tid 896] [client ::1:50710]   File "C:\\Python34\\lib\\site-packages\\django-1.8.dev20140906003850-py3.4.egg\\django\\contrib\\auth\\middleware.py", line 11, in get_user\r
[Sat Sep 06 14:30:48.424951 2014] [:error] [pid 9808:tid 896] [client ::1:50710]     request._cached_user = auth.get_user(request)\r
[Sat Sep 06 14:30:48.424951 2014] [:error] [pid 9808:tid 896] [client ::1:50710]   File "C:\\Python34\\lib\\site-packages\\django-1.8.dev20140906003850-py3.4.egg\\django\\contrib\\auth\\__init__.py", line 155, in get_user\r
[Sat Sep 06 14:30:48.424951 2014] [:error] [pid 9808:tid 896] [client ::1:50710]     user_id = request.session[SESSION_KEY]\r
[Sat Sep 06 14:30:48.425951 2014] [:error] [pid 9808:tid 896] [client ::1:50710]   File "C:\\Python34\\lib\\site-packages\\django-1.8.dev20140906003850-py3.4.egg\\django\\contrib\\sessions\\backends\\base.py", line 49, in __getitem__\r
[Sat Sep 06 14:30:48.425951 2014] [:error] [pid 9808:tid 896] [client ::1:50710]     return self._session[key]\r
[Sat Sep 06 14:30:48.425951 2014] [:error] [pid 9808:tid 896] [client ::1:50710]   File "C:\\Python34\\lib\\site-packages\\django-1.8.dev20140906003850-py3.4.egg\\django\\contrib\\sessions\\backends\\base.py", line 182, in _get_session\r
[Sat Sep 06 14:30:48.425951 2014] [:error] [pid 9808:tid 896] [client ::1:50710]     self._session_cache = self.load()\r
[Sat Sep 06 14:30:48.425951 2014] [:error] [pid 9808:tid 896] [client ::1:50710]   File "C:\\Python34\\lib\\site-packages\\django-1.8.dev20140906003850-py3.4.egg\\django\\contrib\\sessions\\backends\\db.py", line 21, in load\r
[Sat Sep 06 14:30:48.425951 2014] [:error] [pid 9808:tid 896] [client ::1:50710]     expire_date__gt=timezone.now()\r
[Sat Sep 06 14:30:48.425951 2014] [:error] [pid 9808:tid 896] [client ::1:50710]   File "C:\\Python34\\lib\\site-packages\\django-1.8.dev20140906003850-py3.4.egg\\django\\db\\models\\manager.py", line 86, in manager_method\r
[Sat Sep 06 14:30:48.425951 2014] [:error] [pid 9808:tid 896] [client ::1:50710]     return getattr(self.get_queryset(), name)(*args, **kwargs)\r
[Sat Sep 06 14:30:48.425951 2014] [:error] [pid 9808:tid 896] [client ::1:50710]   File "C:\\Python34\\lib\\site-packages\\django-1.8.dev20140906003850-py3.4.egg\\django\\db\\models\\query.py", line 357, in get\r
[Sat Sep 06 14:30:48.425951 2014] [:error] [pid 9808:tid 896] [client ::1:50710]     clone = self.filter(*args, **kwargs)\r
[Sat Sep 06 14:30:48.426951 2014] [:error] [pid 9808:tid 896] [client ::1:50710]   File "C:\\Python34\\lib\\site-packages\\django-1.8.dev20140906003850-py3.4.egg\\django\\db\\models\\query.py", line 702, in filter\r
[Sat Sep 06 14:30:48.426951 2014] [:error] [pid 9808:tid 896] [client ::1:50710]     return self._filter_or_exclude(False, *args, **kwargs)\r
[Sat Sep 06 14:30:48.426951 2014] [:error] [pid 9808:tid 896] [client ::1:50710]   File "C:\\Python34\\lib\\site-packages\\django-1.8.dev20140906003850-py3.4.egg\\django\\db\\models\\query.py", line 720, in _filter_or_exclude\r
[Sat Sep 06 14:30:48.426951 2014] [:error] [pid 9808:tid 896] [client ::1:50710]     clone.query.add_q(Q(*args, **kwargs))\r
[Sat Sep 06 14:30:48.426951 2014] [:error] [pid 9808:tid 896] [client ::1:50710]   File "C:\\Python34\\lib\\site-packages\\django-1.8.dev20140906003850-py3.4.egg\\django\\db\\models\\sql\\query.py", line 1319, in add_q\r
[Sat Sep 06 14:30:48.426951 2014] [:error] [pid 9808:tid 896] [client ::1:50710]     clause, require_inner = self._add_q(where_part, self.used_aliases)\r
[Sat Sep 06 14:30:48.426951 2014] [:error] [pid 9808:tid 896] [client ::1:50710]   File "C:\\Python34\\lib\\site-packages\\django-1.8.dev20140906003850-py3.4.egg\\django\\db\\models\\sql\\query.py", line 1346, in _add_q\r
[Sat Sep 06 14:30:48.426951 2014] [:error] [pid 9808:tid 896] [client ::1:50710]     current_negated=current_negated, connector=connector)\r
[Sat Sep 06 14:30:48.426951 2014] [:error] [pid 9808:tid 896] [client ::1:50710]   File "C:\\Python34\\lib\\site-packages\\django-1.8.dev20140906003850-py3.4.egg\\django\\db\\models\\sql\\query.py", line 1167, in build_filter\r
[Sat Sep 06 14:30:48.426951 2014] [:error] [pid 9808:tid 896] [client ::1:50710]     lookups, parts, reffed_aggregate = self.solve_lookup_type(arg)\r
[Sat Sep 06 14:30:48.427951 2014] [:error] [pid 9808:tid 896] [client ::1:50710]   File "C:\\Python34\\lib\\site-packages\\django-1.8.dev20140906003850-py3.4.egg\\django\\db\\models\\sql\\query.py", line 1068, in solve_lookup_type\r
[Sat Sep 06 14:30:48.427951 2014] [:error] [pid 9808:tid 896] [client ::1:50710]     _, field, _, lookup_parts = self.names_to_path(lookup_splitted, self.get_meta())\r
[Sat Sep 06 14:30:48.427951 2014] [:error] [pid 9808:tid 896] [client ::1:50710]   File "C:\\Python34\\lib\\site-packages\\django-1.8.dev20140906003850-py3.4.egg\\django\\db\\models\\sql\\query.py", line 1371, in names_to_path\r
[Sat Sep 06 14:30:48.427951 2014] [:error] [pid 9808:tid 896] [client ::1:50710]     field, model, direct, m2m = opts.get_field_by_name(name)\r
[Sat Sep 06 14:30:48.427951 2014] [:error] [pid 9808:tid 896] [client ::1:50710]   File "C:\\Python34\\lib\\site-packages\\django-1.8.dev20140906003850-py3.4.egg\\django\\db\\models\\options.py", line 406, in get_field_by_name\r
[Sat Sep 06 14:30:48.427951 2014] [:error] [pid 9808:tid 896] [client ::1:50710]     cache = self.init_name_map()\r
[Sat Sep 06 14:30:48.427951 2014] [:error] [pid 9808:tid 896] [client ::1:50710]   File "C:\\Python34\\lib\\site-packages\\django-1.8.dev20140906003850-py3.4.egg\\django\\db\\models\\options.py", line 435, in init_name_map\r
[Sat Sep 06 14:30:48.427951 2014] [:error] [pid 9808:tid 896] [client ::1:50710]     for f, model in self.get_all_related_m2m_objects_with_model():\r
[Sat Sep 06 14:30:48.427951 2014] [:error] [pid 9808:tid 896] [client ::1:50710]   File "C:\\Python34\\lib\\site-packages\\django-1.8.dev20140906003850-py3.4.egg\\django\\db\\models\\options.py", line 520, in get_all_related_m2m_objects_with_model\r
[Sat Sep 06 14:30:48.427951 2014] [:error] [pid 9808:tid 896] [client ::1:50710]     cache = self._fill_related_many_to_many_cache()\r
[Sat Sep 06 14:30:48.428951 2014] [:error] [pid 9808:tid 896] [client ::1:50710]   File "C:\\Python34\\lib\\site-packages\\django-1.8.dev20140906003850-py3.4.egg\\django\\db\\models\\options.py", line 534, in _fill_related_many_to_many_cache\r
[Sat Sep 06 14:30:48.428951 2014] [:error] [pid 9808:tid 896] [client ::1:50710]     for klass in self.apps.get_models():\r
[Sat Sep 06 14:30:48.428951 2014] [:error] [pid 9808:tid 896] [client ::1:50710]   File "C:\\Python34\\Lib\\functools.py", line 428, in wrapper\r
[Sat Sep 06 14:30:48.428951 2014] [:error] [pid 9808:tid 896] [client ::1:50710]     result = user_function(*args, **kwds)\r
[Sat Sep 06 14:30:48.428951 2014] [:error] [pid 9808:tid 896] [client ::1:50710]   File "C:\\Python34\\lib\\site-packages\\django-1.8.dev20140906003850-py3.4.egg\\django\\apps\\registry.py", line 168, in get_models\r
[Sat Sep 06 14:30:48.428951 2014] [:error] [pid 9808:tid 896] [client ::1:50710]     self.check_models_ready()\r
[Sat Sep 06 14:30:48.428951 2014] [:error] [pid 9808:tid 896] [client ::1:50710]   File "C:\\Python34\\lib\\site-packages\\django-1.8.dev20140906003850-py3.4.egg\\django\\apps\\registry.py", line 131, in check_models_ready\r
[Sat Sep 06 14:30:48.428951 2014] [:error] [pid 9808:tid 896] [client ::1:50710]     raise AppRegistryNotReady("Models aren't loaded yet.")\r
[Sat Sep 06 14:30:48.428951 2014] [:error] [pid 9808:tid 896] [client ::1:50710] django.core.exceptions.AppRegistryNotReady: Models aren't loaded yet.\r

I want only get start Django page "It worked! Congratulation on your first Django-powered page."
What I do wrong?

Attachments (1)

23437.patch (833 bytes ) - added by Aymeric Augustin 10 years ago.

Download all attachments as: .zip

Change History (8)

comment:1 by Aymeric Augustin, 10 years ago

You're using a WSGI setup that hasn't been documented for 4 releases but still worked by accident until Django 1.6

We need to explain that in release notes for Django 1.7.

See also https://groups.google.com/d/msg/django-developers/DDvBDdQupAA/EsUq7ZDacMIJ

Last edited 10 years ago by Aymeric Augustin (previous) (diff)

by Aymeric Augustin, 10 years ago

Attachment: 23437.patch added

comment:2 by Aymeric Augustin, 10 years ago

Component: UncategorizedDocumentation
Has patch: set
Keywords: RuntimeError removed
Triage Stage: UnreviewedAccepted

I've attached a proposal for the release notes.

comment:3 by Tim Graham, 10 years ago

Triage Stage: AcceptedReady for checkin

comment:4 by Rostunov Sergey , 10 years ago

Triage Stage: Ready for checkinAccepted

Thanks, it's worked.
Also, old versions django get start page ("It worked! Congratulation on your first Django-powered page.") without python manage.py syncdb / migrate
Now it's necessary command, otherwise it will be again 500 error message in the log:

[Sat Sep 06 15:27:57.059057 2014] [:error] [pid 6476:tid 900] [client ::1:51859]     return Database.Cursor.execute(self, query, params)\r
[Sat Sep 06 15:27:57.059057 2014] [:error] [pid 6476:tid 900] [client ::1:51859] django.db.utils.OperationalError: no such table: django_session\r

comment:5 by Tim Graham, 10 years ago

Triage Stage: AcceptedReady for checkin

We added a release note for the migrate before runserver change in #23427.

comment:6 by Aymeric Augustin <aymeric.augustin@…>, 10 years ago

Resolution: fixed
Status: newclosed

In dfe209a0c0801855cd8157199cb3bb31e5be11ce:

Fixed #23437 -- Documented required update of WSGI scripts for 1.7.

Thanks Tim for the review.

comment:7 by Aymeric Augustin <aymeric.augustin@…>, 10 years ago

In f8fdb7177b79b79968a3f40612d33c7367ae584f:

[1.7.x] Fixed #23437 -- Documented required update of WSGI scripts for 1.7.

Thanks Tim for the review.

Backport of dfe209a from master

Note: See TracTickets for help on using tickets.
Back to Top