python - django admin error - Unknown column 'django_content_type.name' in 'field list' -



python - django admin error - Unknown column 'django_content_type.name' in 'field list' -

my django project had working admin page, of sudden started receiving: "unknown column 'django_content_type.name' in 'field list'" whenever seek access admin page. can still access portions of admin, not main page.

i'm pretty new django , python, have no thought look.

here's total error:

internalerror @ /admin/ (1054, u"unknown column 'django_content_type.name' in 'field list'") request method: request url: http://127.0.0.1:8000/admin/ django version: 1.7.7 exception type: internalerror exception value: (1054, u"unknown column 'django_content_type.name' in 'field list'") exception location: c:\python27\lib\site-packages\pymysql\err.py in _check_mysql_exception, line 115 python executable: c:\python27\python.exe python version: 2.7.9 python path: ['c:\\users\\dhysong\\documents\\school\\cs6310\\project4\\cs6310', 'c:\\windows\\system32\\python27.zip', 'c:\\python27\\dlls', 'c:\\python27\\lib', 'c:\\python27\\lib\\plat-win', 'c:\\python27\\lib\\lib-tk', 'c:\\python27', 'c:\\python27\\lib\\site-packages'] server time: thu, 9 apr 2015 08:17:05 -0400

html error occurs on line 63:

in template c:\python27\lib\site-packages\django\contrib\admin\templates\admin\index.html, error @ line 63 1054 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 admin_log for_user user %} 59 {% if not admin_log %} 60 <p>{% trans 'none available' %}</p> 61 {% else %} 62 <ul class="actionlist"> 63 {% 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 %}

i had same issue , related different versions of django. updated of machines working on project django 1.8 using pip install -u django , worked fine after that.

python django

Comments

Popular posts from this blog

java - How to set log4j.defaultInitOverride property to false in jboss server 6 -

c - GStreamer 1.0 1.4.5 RTSP Example Server sends 503 Service unavailable -

Using ajax with sonata admin list view pagination -