2013-12-24 45 views
2

我想將Django 1.3應用程序轉換爲Django 1.6。我現在用的是Django的跟蹤包,但是當我開始runsever我收到以下錯誤:django跟蹤與Django 1.6不兼容

Unhandled exception in thread started by <function wrapper at 0x10868e9b0> 
Traceback (most recent call last): 
    File "/Users/athom09/Projects/openemory1.6/openemoryEnv/lib/python2.7/site-packages/django/utils/autoreload.py", line 93, in wrapper 
    fn(*args, **kwargs) 
    File "/Users/athom09/Projects/openemory1.6/openemoryEnv/lib/python2.7/site-packages/django/core/management/commands/runserver.py", line 101, in inner_run 
    self.validate(display_num_errors=True) 
    File "/Users/athom09/Projects/openemory1.6/openemoryEnv/lib/python2.7/site-packages/django/core/management/base.py", line 310, in validate 
    num_errors = get_validation_errors(s, app) 
    File "/Users/athom09/Projects/openemory1.6/openemoryEnv/lib/python2.7/site-packages/django/core/management/validation.py", line 34, in get_validation_errors 
    for (app_name, error) in get_app_errors().items(): 
File "/Users/athom09/Projects/openemory1.6/openemoryEnv/lib/python2.7/site-packages/django/db/models/loading.py", line 196, in get_app_errors 
    self._populate() 
    File "/Users/athom09/Projects/openemory1.6/openemoryEnv/lib/python2.7/site-packages/django/db/models/loading.py", line 78, in _populate 
    self.load_app(app_name) 
    File "/Users/athom09/Projects/openemory1.6/openemoryEnv/lib/python2.7/site-packages/django/db/models/loading.py", line 99, in load_app 
    models = import_module('%s.models' % app_name) 
    File "/Users/athom09/Projects/openemory1.6/openemoryEnv/lib/python2.7/site-packages/django/utils/importlib.py", line 40, in import_module 
    __import__(name) 
    File "/Users/athom09/Projects/openemory1.6/openemoryEnv/lib/python2.7/site-packages/tracking/models.py", line 5, in <module> 
    from django.contrib.gis.utils import HAS_GEOIP 
ImportError: cannot import name HAS_GEOIP 

回答

1

你可以嘗試安裝的Django的跟蹤與

pip install git+https://github.com/bashu/django-tracking.git 
+0

雖然這提供了一個線索,但對我來說,使用ssh的工作,沒有使用https開發版本。 pip install git + ssh://[email protected]/bashu/django-tracking.git – Hobaak