Uzyskanie obiektu „DatabaseOperations” nie ma błędu atrybutu „geo_db_type” podczas wykonywania syncdb

Próbuję biecheroku run python manage.py syncdb w mojej aplikacji GeoDjango na Heroku, ale otrzymuję następujący błąd:

AttributeError: Obiekt „DatabaseOperations” nie ma atrybutu „geo_db_type”

Wszystko z mój Badania przyniosło to samo rozwiązanie: upewnij się, że używaszdjango.contrib.gis.db.backends.postgis jako silnik bazy danych. Zabawne jest toJuż to robię (a ja teżdjango.contrib.gis wINSTALLED_APPS):

settings.py

DATABASES = {
  'default': {
    'ENGINE': 'django.contrib.gis.db.backends.postgis',
    'NAME': '...',
    'HOST': '...',
    'PORT': ...,
    'USER': '...',
    'PASSWORD': '...'
  }
}

INSTALLED_APPS = (
    ...,
    'django.contrib.gis',
)

Czy czegoś jeszcze brakuje? Każda pomoc jest bardzo mile widziana, poniżej znajduje się pełny ślad błędów w celach informacyjnych:

Running `python manage.py syncdb` attached to terminal... up, run.1
Creating tables ...
Creating table auth_permission
Creating table auth_group_permissions
Creating table auth_group
Creating table auth_user_user_permissions
Creating table auth_user_groups
Creating table auth_user
Creating table django_content_type
Creating table django_session
Creating table django_site
Creating table django_admin_log
Traceback (most recent call last):
  File "manage.py", line 10, in <module>
    execute_from_command_line(sys.argv)
  File "/app/lib/python2.7/site-packages/django/core/management/__init__.py", line 443, in execute_from_command_line
    utility.execute()
  File "/app/lib/python2.7/site-packages/django/core/management/__init__.py", line 382, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/app/lib/python2.7/site-packages/django/core/management/base.py", line 196, in run_from_argv
    self.execute(*args, **options.__dict__)
  File "/app/lib/python2.7/site-packages/django/core/management/base.py", line 232, in execute
    output = self.handle(*args, **options)
  File "/app/lib/python2.7/site-packages/django/core/management/base.py", line 371, in handle
    return self.handle_noargs(**options)
  File "/app/lib/python2.7/site-packages/django/core/management/commands/syncdb.py", line 91, in handle_noargs
    sql, references = connection.creation.sql_create_model(model, self.style, seen_models)
  File "/app/lib/python2.7/site-packages/django/db/backends/creation.py", line 44, in sql_create_model
    col_type = f.db_type(connection=self.connection)
  File "/app/lib/python2.7/site-packages/django/contrib/gis/db/models/fields.py", line 200, in db_type
    return connection.ops.geo_db_type(self)
AttributeError: 'DatabaseOperations' object has no attribute 'geo_db_type'

Aktualizacja: Poszedłem zaSamouczek GeoDjango iSamouczek Heroku / Djangoi zbudowałem prostą aplikację, która działa na moim komputerze dev. Pchnąłem go do Heroku za pomocąniestandardowy buildpack GeoDjangoi spróbowałem syncdb, ale otrzymałem ten sam błąd. Czy jest to problem z Django / GeoDjango, Heroku lub buildpack? Moje środowisko dev używa PostgreSQL 9.1 i PostGIS 2.0, ale Heroku używa 9.0.9 i 1.5, czy to może być problem?

questionAnswers(9)

yourAnswerToTheQuestion