straight55b / app-engine-patch

Automatically exported from code.google.com/p/app-engine-patch
0 stars 0 forks source link

"manage.py cleanup" does not work #257

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Run "manage.py cleanup"
2. Same error is reported when I tried to run this in a view method (as 
cron job for appengine)

What is the expected output? What do you see instead?
It is expected that expired sessions are deleted. Instead I have following 
error:
Running on app-engine-patch 1.1
Traceback (most recent call last):
  File "PROJECT_HOME\manage.py", line 18, in <module>
    execute_manager(settings)
  File "PROJECT_HOME\__init__.py", line 384, in execute_manager

  File "PROJECT_HOME\__init__.py", line 325, in execute

  File "PROJECT_HOME\common\zip-packages\django-
1.1.zip\django\core\management\base.py", line 200,
 in run_from_argv
  File "PROJECT_HOME\common\zip-packages\django-
1.1.zip\django\core\management\base.py", line 227,
 in execute
  File "PROJECT_HOME\common\zip-packages\django-
1.1.zip\django\core\management\base.py", line 356,
 in handle
  File "PROJECT_HOME\common\zip-packages\django-
1.1.zip\django\core\management\commands\cleanup.py
", line 10, in handle_noargs
  File "PROJECT_HOME\common\zip-packages\django-
1.1.zip\django\db\models\manager.py", line 129, in
 filter
  File "PROJECT_HOME\common\zip-packages\django-
1.1.zip\django\db\models\manager.py", line 99, in
get_query_set
  File "PROJECT_HOME\common\zip-packages\django-
1.1.zip\django\db\models\query.py", line 36, in __
init__
AttributeError: 'module' object has no attribute 'Query'

What version of the product are you using? On what operating system?
Running on app-engine-patch 1.1RC

Please provide any additional information below.

Original issue reported on code.google.com by sviri...@gmail.com on 23 Jan 2010 at 4:41