Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not able to run django-testapp #13

Open
conteit opened this issue Jan 16, 2015 · 0 comments
Open

Not able to run django-testapp #13

conteit opened this issue Jan 16, 2015 · 0 comments

Comments

@conteit
Copy link

conteit commented Jan 16, 2015

I tried to configure (both on Windows 8.1 and MacOS X Yosemite) in order to run django-testapp, because I'm interested in developing a django webapp on gae.

I'm using Python 2.7.6 on Mac and 2.7.9 on Windows.

First attempt: Installed latest GAE SDK (1.9.17), cloned django-testapp, ran build.sh script. Then I tried to execute "python manage.py runserver", but I've got an error about dev_appserver.

I googled this issue and found that somebody was able to start the server by using "devappserver2" branch on django-appengine and GAE SDK 1.9.14, so I decided to give it a try.

Second attempt: GAE SDK 1.9.14, devappserver2 branch. With this setup runserver worked. Since I'm intereseted in django admin site, I tried the createsuperuser command but I've got the following traceback:


C:\Users\Paolo\Documents\GitHub\django-testapp>python manage.py createsuperuser
WARNING 2015-01-16 12:36:46,957 backends.py:59] The Backends API is deprecated
and will be removed in a future release. Please migrate to the Modules API as so
on as possible.
WARNING 2015-01-16 12:36:47,137 simple_search_stub.py:1115] Could not read sear
ch indexes from c:\users\paolo\appdata\local\temp\dev_appserver.searchindexes
Traceback (most recent call last):
File "manage.py", line 11, in
execute_manager(settings)
File "C:\Users\Paolo\Documents\GitHub\django-testapp\django\core\management__
init__.py", line 459, in execute_manager
utility.execute()
File "C:\Users\Paolo\Documents\GitHub\django-testapp\django\core\management__
init__.py", line 382, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "C:\Users\Paolo\Documents\GitHub\django-testapp\django\core\management\ba
se.py", line 196, in run_from_argv
self.execute(_args, *_options.dict)
File "C:\Users\Paolo\Documents\GitHub\django-testapp\django\core\management\ba
se.py", line 232, in execute
output = self.handle(args, *options)
File "C:\Users\Paolo\Documents\GitHub\django-testapp\django\contrib\auth\manag
ement\commands\createsuperuser.py", line 70, in handle
default_username = get_default_username()
File "C:\Users\Paolo\Documents\GitHub\django-testapp\django\contrib\auth\manag
ement__init
.py", line 117, in get_default_username
User.objects.get(username=default_username)
File "C:\Users\Paolo\Documents\GitHub\django-testapp\django\db\models\manager.
py", line 131, in get
return self.get_query_set().get(_args, *_kwargs)
File "C:\Users\Paolo\Documents\GitHub\django-testapp\django\db\models\query.py
", line 361, in get
num = len(clone)
File "C:\Users\Paolo\Documents\GitHub\django-testapp\django\db\models\query.py
", line 85, in len
self._result_cache = list(self.iterator())
File "C:\Users\Paolo\Documents\GitHub\django-testapp\django\db\models\query.py
", line 287, in iterator
compiler = self.query.get_compiler(using=db)
File "C:\Users\Paolo\Documents\GitHub\django-testapp\django\db\models\sql\quer
y.py", line 225, in get_compiler
return connection.ops.compiler(self.compiler)(self, connection, using)
File "C:\Users\Paolo\Documents\GitHub\django-testapp\dbindexer\base.py", line
27, in compiler
target = super(DatabaseOperations, self).compiler(compiler_name)
File "C:\Users\Paolo\Documents\GitHub\django-testapp\django\db\backends__init
__.py", line 687, in compiler
self._cache = import_module(self.compiler_module)
File "C:\Users\Paolo\Documents\GitHub\django-testapp\django\utils\importlib.py
", line 35, in import_module
import(name)
File "C:\Users\Paolo\Documents\GitHub\django-testapp\djangoappengine\db\compil
er.py", line 17, in
from djangotoolbox.db.basecompiler import (
ImportError: cannot import name NonrelAggregateCompiler


Any suggestions?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant