2016-12-01 14 views
0

を使用してdjango-google-analyticsをインストールしました。この応答はRequirement already satisfied: django-google-analytics in ./env/lib/python2.7/site-packagesです。Django-google-analyticsインポートエラー

私は

は、私は何をする必要がありますImportError: No module named google_analyticsを取得し、私はINSTALLED_APPSから'google_analytics',を追加しましたし、私はenv/bin/python manage.py syncdbを実行すると、私は

settings.pyGOOGLE_ANALYTICS_MODEL = Trueを追加しましたか?便利

cache cleared 
cache settings imported 
Traceback (most recent call last): 
    File "manage.py", line 10, in <module> 
    execute_from_command_line(sys.argv) 
    File "/home/henry/Documents/culture.folder/src/culturegymnkitchen/env/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 353, in execute_from_command_line 
    utility.execute() 
    File "/home/henry/Documents/culture.folder/src/culturegymnkitchen/env/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 327, in execute 
    django.setup() 
    File "/home/henry/Documents/culture.folder/src/culturegymnkitchen/env/local/lib/python2.7/site-packages/django/__init__.py", line 18, in setup 
    apps.populate(settings.INSTALLED_APPS) 
    File "/home/henry/Documents/culture.folder/src/culturegymnkitchen/env/local/lib/python2.7/site-packages/django/apps/registry.py", line 85, in populate 
    app_config = AppConfig.create(entry) 
    File "/home/henry/Documents/culture.folder/src/culturegymnkitchen/env/local/lib/python2.7/site-packages/django/apps/config.py", line 90, in create 
    module = import_module(entry) 
    File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module 
    __import__(name) 
ImportError: No module named google_analytics 
+1

あなたのDjangoバージョンは何ですか? –

+0

Django == 1.7.10 – HenryM

+0

としてrequirements.txtからインストールされましたが、それは答えでした - 私は何か他のバージョンが間違っていました。私はすべてを再インストールし、進歩したようです。 – HenryM

答えて

0

問題は、Djangoのバージョンを変更して、アップロードされた新しいパッケージが使用されていた場合

EDIT

はここで完全なトレースバックです。これがソートされると、ロードされました。