title: django deployment issue with mod_wsgi
body: <p>I am trying to deploy my django project which is located at home/doga/headend/ and just to run it on the localhost (will be a LAN accessable project). My main problem is that I can use the site well however the /admin/ folder is giving me <code>Internal Server Error</code> error.</p>
  
  <p>anyway here is my etc/apache2/sites-available/default file</p>
  
  <pre><code>&lt;VirtualHost *:80&gt;
  ServerName /
  ServerAlias  */
  DocumentRoot /home/doga/headend/
  LogLevel warn
  WSGIScriptAlias / /home/doga/headend/apache/django.wsgi
  Alias /media /home/doga/headend/media/statics
  Alias /admin_media /usr/lib/python2.4/site-packages/django/contrib/admin/media
  
  &lt;/VirtualHost&gt;
  </code></pre>
  
  <p>and here is my home/doga/headend/apache/django.wsgi file</p>
  
  <pre><code>import os, sys
  import django.core.handlers.wsgi
  
  
  sys.path.append('/home/doga/')
  sys.path.append('/home/doga/headend')
  
  os.environ['DJANGO_SETTINGS_MODULE'] = 'headend.settings'
  application = django.core.handlers.wsgi.WSGIHandler()
  </code></pre>
  
  <p>lastly my main url.py</p>
  
  <pre><code>from django.conf.urls.defaults import *
  from django.conf import settings
  
  # Uncomment the next two lines to enable the admin:
  from django.contrib import admin
  admin.autodiscover()
  
  urlpatterns = patterns('',
      # Example:
      # (r'^headend/', include('headend.foo.urls')),
  
      # Uncomment the admin/doc line below and add 'django.contrib.admindocs' 
      # to INSTALLED_APPS to enable admin documentation:
      (r'^table/(?P&lt;pid&gt;.*)/$', 'main.views.table_view'),
      (r'^graph/(?P&lt;pid&gt;.*)/$', 'main.views.graph_view'),
      (r'^graph/$', 'main.views.platform_graph_view'),
      (r'^table/$', 'main.views.platform_view'),
      (r'^csv/$', 'main.views.csv_view'),
      (r'^recent/$', 'main.views.recent_view'),
      (r'^$', 'main.views.main_view'),
      (r'^cs/(?P&lt;number&gt;.*)/$', 'main.views.ch_view'),
      #(r'^admin/doc/', include('django.contrib.admindocs.urls')),
      # Uncomment the next line to enable the admin:
      (r'^admin/', include(admin.site.urls)),
      #(r'^$', 'main.views.main_view'),
      #(r'^media/(?P&lt;path&gt;.*)$', 'django.views.static.serve',
      #   {'document_root': '/home/uluc/headendmedia/statics'}),
  )
  </code></pre>