2016-09-13 3 views
0

フォーム1.7.4を1.8以上にアップグレードしようとしています。一度に1歩ずつ進もうとしています。テンプレートレンダリング中にエラーが発生しました。/ admin/column django_content_type.nameに存在しません。

メインの管理ページを開くことができない場合を除き、すべての手順が実行されます。

adminでアプリを開くことができます。しかし、メイン管理テンプレートではありません。ここ

はエラーである:

ProgrammingError at /admin/ 
column django_content_type.name does not exist 
LINE 1: ..._user"."date_joined", "django_content_type"."id", "django_co... 
                  ^
Request Method: GET 
Request URL: http://test.shipler.in/admin/ 
Django Version: 1.7.4 
Exception Type: ProgrammingError 
Exception Value:  
column django_content_type.name does not exist 
LINE 1: ..._user"."date_joined", "django_content_type"."id", "django_co... 


                ^

テンプレートは{admin_log%内のエントリの%}が問題を引き起こしている

Error during template rendering 

In template /usr/local/lib/python2.7/dist-packages/django/contrib/admin/templates/admin/index.html, error at line 63 
column django_content_type.name does not exist LINE 1: ..._user"."date_joined", "django_content_type"."id", "django_co...^
53 <div id="content-related"> 
54  <div class="module" id="recent-actions-module"> 
55   <h2>{% trans 'Recent Actions' %}</h2> 
56   <h3>{% trans 'My Actions' %}</h3> 
57    {% load log %} 
58    {% get_admin_log 10 as admin_log for_user user %} 
59    {% if not admin_log %} 
60    <p>{% trans 'None available' %}</p> 
61    {% else %} 
62    <ul class="actionlist"> 
63    **{% for entry in admin_log %}** 
64    <li class="{% if entry.is_addition %}addlink{% endif %}{% if entry.is_change %}changelink{% endif %}{% if entry.is_deletion %}deletelink{% endif %}"> 
65     {% if entry.is_deletion or not entry.get_admin_url %} 
66      {{ entry.object_repr }} 
67     {% else %} 
68      <a href="{{ entry.get_admin_url }}">{{ entry.object_repr }}</a> 
69     {% endif %} 
70     <br/> 
71     {% if entry.content_type %} 
72      <span class="mini quiet">{% filter capfirst %}{% trans entry.content_type.name %}{% endfilter %}</span> 
73     {% else %} 

をレンダリングしながら、それが原因となるエラーです。

それはジャンゴ1.7.4を示しているが、私はすでに1.8.9にアップグレードしますが、いくつかの方法をそのまだ1.7.4

そのがローカルにその作業罰金をリモートサーバー上で起こったが使用して。

ここに問題があることを教えてください。

よろしく

EDIT

Djangoのバージョンアウトサイド環境は1.7.4であり、それは1.8.12であるインサイド。

管理者が外部からの使用を試みているようです。

EDIT 2

研究の多くは、Djangoのverisonが1.7であるところのプロジェクトが指している仮想環境が、異なっていることが判明した後。

プロジェクト内のwsgiファイルの仮想環境のパスを変更しました。

しかし、今では親切に手伝っ

Internal Server Error 

The server encountered an internal error or misconfiguration and was unable to complete your request. 

を与えています。

よろしく

答えて

0

まず第一に、あなたはあなたの仮想環境には、されていることを確認し、その後、PIPのDjango == 1.8.14 をインストールし実行し、あなたのエラーが不足している列があることを示しているので、移行を実行する

./manage.py migrate

+0

はい、数回試しました。 内部環境。 Apacheを停止した後にdjangoをインストールしました そしてmigrateコマンドを実行しました それでも問題は解決しません。 まだdjangoを使用しています1.7.4 – VinayJ

+0

その他の調査では、Djangoのバージョンが環境側に1.7.4、内部に1.8.12が表示されています。 管理者が外部からの使用を試みているようです。 – VinayJ

関連する問題