title: django admin error - cannot access admin page
body: <p>I just started my new django 1.8 project. I created a superuser and went to <code>127.0.0.1:8000/admin/</code> and logged in from that. After logging in, it shows the following error:</p>
  
  <pre><code>(1054, "Unknown column 'django_content_type.name' in 'field list'")
  </code></pre>
  
  <p>I searched around and found just one relevant question, <a href="https://stackoverflow.com/questions/29538388/django-admin-error-unknown-column-django-content-type-name-in-field-list">here</a>.</p>
  
  <p>As said in the discussion there, I dropped my schema and recreated it many times; still I get the same error. The <code>django_content_type</code> table in my database has only three fields: id, app_label and model. It doesn't have 'name' which is deprecated.</p>
  
  <p>Also, I can access other urls like <code>/admin/auth/</code>, <code>/admin/auth/users/</code>, but trying to add more users gives the following error(I think this is also coming due to the same problem as above):</p>
  
  <pre><code>Error creating new content types. Please make sure contenttypes is migrated before trying to migrate apps individually.
  </code></pre>
  
  <p>I'm very new to Django in general. Any help would be much appreciated. Thanks.</p>
  
  <p>Here's the full error:</p>
  
  <pre><code>OperationalError at /admin/
  (1054, "Unknown column 'django_content_type.name' in 'field list'")
      Request Method: GET
      Request URL:    http://127.0.0.1:8000/admin/
      Django Version: 1.7.5
      Exception Type: OperationalError
      Exception Value:    
      (1054, "Unknown column 'django_content_type.name' in 'field list'")
      Exception Location: /usr/local/lib/python2.7/dist-packages/MySQLdb/connections.py in defaulterrorhandler, line 36
      Python Executable:  /usr/bin/python
      Python Version: 2.7.6
      Python Path:    
      ['/home/rahul/Development/rmgl_project',
       '/usr/local/lib/python2.7/dist-packages/virtualenv-12.1.1-py2.7.egg',
       '/usr/lib/python2.7',
       '/usr/lib/python2.7/plat-x86_64-linux-gnu',
       '/usr/lib/python2.7/lib-tk',
       '/usr/lib/python2.7/lib-old',
       '/usr/lib/python2.7/lib-dynload',
       '/usr/local/lib/python2.7/dist-packages',
       '/usr/lib/python2.7/dist-packages',
       '/usr/lib/python2.7/dist-packages/PILcompat',
       '/usr/lib/python2.7/dist-packages/gtk-2.0',
       '/usr/lib/pymodules/python2.7',
       '/usr/lib/python2.7/dist-packages/ubuntu-sso-client']
      Server time:    Wed, 8 Jul 2015 07:19:12 +0000
  </code></pre>
  
  <p>I realised that this error shows my django version as 1.7 whereas I installed django 1.8 using <code>pip</code>. I ran <code>python manage.py shell</code> and checked my django version from there(cannot post screenshot, rep not high enough).</p>
  
  <pre><code>$ python manage.py shell
  &gt;&gt;&gt; import django
  &gt;&gt;&gt; django.VERSION
  (1, 8, 2, 'final', 0)
  &gt;&gt;&gt;
  </code></pre>
  
  <p>How can I correct this? Thanks again. I'm using virtualenv.</p>
  
  <p>Edit: adding urls.py</p>
  
  <pre><code>"""rmgl_project URL Configuration
  
  The `urlpatterns` list routes URLs to views. For more information please see:
  https://docs.djangoproject.com/en/1.8/topics/http/urls/
  Examples:
  Function views
      1. Add an import:  from my_app import views
      2. Add a URL to urlpatterns:  url(r'^$', views.home, name='home')
  Class-based views
      1. Add an import:  from other_app.views import Home
      2. Add a URL to urlpatterns:  url(r'^$', Home.as_view(), name='home')
  Including another URLconf
      1. Add an import:  from blog import urls as blog_urls
      2. Add a URL to urlpatterns:  url(r'^blog/', include(blog_urls))
  """
  from django.conf.urls import include, url
  from django.contrib import admin
  
  urlpatterns = [
      url(r'^admin/', include(admin.site.urls)),
  ]
  </code></pre>
  
  <p>Adding manage.py:</p>
  
  <pre><code>#!/usr/bin/env python
  import os
  import sys
  
  if __name__ == "__main__":
      os.environ.setdefault("DJANGO_SETTINGS_MODULE",     "rmgl_project.settings")
  
      from django.core.management import execute_from_command_line
  
      execute_from_command_line(sys.argv)
  </code></pre>