title: apache 500 internal error when updating from django 1.3 to 1.4
body: <p>Originally when I installed Django 1.3 with wsgi on my ubuntu server I used the included setup.py file and so when I wanted to update followed the <a href="https://docs.djangoproject.com/en/dev/topics/install/#removing-old-versions-of-django" rel="nofollow">Remove any old versions of Django</a> section of the install guide by renaming the "django" folder in my site-packages "django.old" and then installing the new version by using the the setup.py file for Django 1.4</p>
  
  <p>After restarting my apache server I got a standard 500 Internal error. I checked the apache error log and discovered that ADMIN_MEDIA_PREFIX has been deprecated so following the <a href="https://docs.djangoproject.com/en/dev/releases/1.4/" rel="nofollow">Django 1.4 release notes</a> I removed ADMIN_MEDIA_PREFIX from the settings file and moved the admin files into the static directory under a folder called "admin" as indicated.</p>
  
  <p>I restarted my apache server again and received the same standard 500 error but this time when I tried running a tail on the apache error log no new errors registered.</p>
  
  <p>Without any further error messages I am really stuck so any help will be appreciated.</p>
  
  <p>Below is the content of my apache site config file and the wsgi file</p>
  
  <p>site config:</p>
  
  <pre><code>&lt;VirtualHost *:80&gt;
      ServerAdmin me@mysite.com
      ServerName  www.mysite.com
      ServerAlias mysite.com
  
      # Indexes + Directory Root.
      # DirectoryIndex index.html index.htm index.php
      DocumentRoot /home/www/www.mysite.com/htdocs/
  
      # CGI Directory
      ScriptAlias /cgi-bin/ /home/www/www.mysite.com/cgi-bin/
      &lt;Location /cgi-bin&gt;
              Options +ExecCGI
      &lt;/Location&gt;
  
      # Logfiles
      ErrorLog  /home/www/www.mysite.com/logs/error.log
      CustomLog /home/www/www.mysite.com/logs/access.log combined
  
      &lt;Directory /&gt;
              Options FollowSymLinks
              AllowOverride None
      &lt;/Directory&gt;
      &lt;Directory /home/www/www.mysite.com/htdocs/&gt;
              Options FollowSymLinks MultiViews
              AllowOverride All
             allow from all
      &lt;/Directory&gt;
  
      ### Connect Django to the URL using WSGI (the django recommended method)
      WSGIScriptAlias /myproject /django/myproject/django.wsgi
  
      ### Alias to the location of the static dir (images, css, js etc.)
      Alias /myproject/static /django/myproject/static
      &lt;Directory /django/myproject/static&gt;
              Order deny,allow
              allow from all
      &lt;/Directory&gt;
  &lt;/VirtualHost&gt;
  </code></pre>
  
  <p>django.wsgi:</p>
  
  <pre><code>import sys
  import os
  import django.core.handlers.wsgi
  
  sys.path.append(os.path.dirname(os.path.abspath(__file__)) + '/..')
  os.environ['DJANGO_SETTINGS_MODULE'] = 'myproject.settings'
  
  application = django.core.handlers.wsgi.WSGIHandler()
  
  sys.path.insert(0, '/django/myproject/')
  sys.path.insert(0, '/django/myproject/')
  
  from django.core.handlers.wsgi import WSGIHandler
  
  application = WSGIHandler()
  </code></pre>
  
  <p><strong>Please note I have tried to remove or rename any identifying information from these files for security reasons, so if there is an obvious syntax error etc. it is probably due to this editing. The original versions of these files are the same accept for the name changes and worked well under Django 1.3</strong></p>