I've set up a mysql database and user and everything is correct in the config file. But when I run 'django-admin.py syncdb --migrate' to initialise the database I get the following error,
Traceback (most recent call last):
 File "/opt/ganeti_webmgr/bin/django-admin.py", line 5, in <module>
  management.execute_from_command_line()
 File "/opt/ganeti_webmgr/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 443, in execute_from_command_line
  utility.execute()
 File "/opt/ganeti_webmgr/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 382, in execute
  self.fetch_command(subcommand).run_from_argv(self.argv)
 File "/opt/ganeti_webmgr/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 261, in fetch_command
  klass = load_command_class(app_name, subcommand)
 File "/opt/ganeti_webmgr/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 69, in load_command_class
  module = import_module('%s.management.commands.%s' % (app_name, name))
 File "/opt/ganeti_webmgr/local/lib/python2.7/site-packages/django/utils/importlib.py", line 35, in import_module
  __import__(name)
 File "/opt/ganeti_webmgr/local/lib/python2.7/site-packages/south/management/commands/__init__.py", line 10, in <module>
  import django.template.loaders.app_directories
 File "/opt/ganeti_webmgr/local/lib/python2.7/site-packages/django/template/loaders/app_directories.py", line 21, in <module>
  mod = import_module(app)
 File "/opt/ganeti_webmgr/local/lib/python2.7/site-packages/django/utils/importlib.py", line 35, in import_module
  __import__(name)
 File "/opt/ganeti_webmgr/local/lib/python2.7/site-packages/haystack/__init__.py", line 154, in <module>
  handle_registrations()
 File "/opt/ganeti_webmgr/local/lib/python2.7/site-packages/haystack/__init__.py", line 151, in handle_registrations
  search_sites_conf = importlib.import_module(settings.HAYSTACK_SITECONF)
 File "/opt/ganeti_webmgr/local/lib/python2.7/site-packages/django/utils/importlib.py", line 35, in import_module
  __import__(name)
 File "/opt/ganeti_webmgr/local/lib/python2.7/site-packages/ganeti_webmgr/search_sites.py", line 2, in <module>
  haystack.autodiscover()
 File "/opt/ganeti_webmgr/local/lib/python2.7/site-packages/haystack/__init__.py", line 121, in autodiscover
  importlib.import_module("%s.search_indexes" % app)
 File "/opt/ganeti_webmgr/local/lib/python2.7/site-packages/django/utils/importlib.py", line 35, in import_module
  __import__(name)
 File "/opt/ganeti_webmgr/local/lib/python2.7/site-packages/ganeti_webmgr/ganeti_web/search_indexes.py", line 3, in <module>
  from ganeti_webmgr.virtualmachines.models import VirtualMachine
 File "/opt/ganeti_webmgr/local/lib/python2.7/site-packages/ganeti_webmgr/virtualmachines/models.py", line 5, in <module>
  from ganeti_webmgr.clusters.models import CachedClusterObject
 File "/opt/ganeti_webmgr/local/lib/python2.7/site-packages/ganeti_webmgr/clusters/models.py", line 297, in <module>
  class Cluster(CachedClusterObject):
 File "/opt/ganeti_webmgr/local/lib/python2.7/site-packages/ganeti_webmgr/clusters/models.py", line 309, in Cluster
  max_length=128, blank=True)
 File "/opt/ganeti_webmgr/local/lib/python2.7/site-packages/django_fields/fields.py", line 50, in __init__
 File "/opt/ganeti_webmgr/local/lib/python2.7/site-packages/Crypto/Cipher/AES.py", line 95, in new
  return AESCipher(key, *args, **kwargs)
 File "/opt/ganeti_webmgr/local/lib/python2.7/site-packages/Crypto/Cipher/AES.py", line 59, in __init__
  blockalgo.BlockAlgo.__init__(self, _AES, key, *args, **kwargs)
 File "/opt/ganeti_webmgr/local/lib/python2.7/site-packages/Crypto/Cipher/blockalgo.py", line 141, in __init__
ValueError: Key cannot be the null string