Unhandled exception in thread started by <function wrapper at 0x062BE630>
Traceback (most recent call last):
File "C:Mobile-Security-Framework-MobSF-masterPython27libsite-packagesdjangoutilsautoreload.py", line 228, in wrapper
fn(*args, **kwargs)
File "C:Mobile-Security-Framework-MobSF-masterPython27libsite-packagesdjangocoremanagementcommandsrunserver.py", line 117, in inner_run
autoreload.raise_last_exception()
File "C:Mobile-Security-Framework-MobSF-masterPython27libsite-packagesdjangoutilsautoreload.py", line 251, in raise_last_exception
six.reraise(*_exception)
File "C:Mobile-Security-Framework-MobSF-masterPython27libsite-packagesdjangoutilsautoreload.py", line 228, in wrapper
fn(*args, **kwargs)
File "C:Mobile-Security-Framework-MobSF-masterPython27libsite-packagesdjango__init__.py", line 27, in setup
apps.populate(settings.INSTALLED_APPS)
File "C:Mobile-Security-Framework-MobSF-masterPython27libsite-packagesdjangoappsregistry.py", line 108, in populate
app_config.import_models()
File "C:Mobile-Security-Framework-MobSF-masterPython27libsite-packagesdjangoappsconfig.py", line 202, in import_models
self.models_module = import_module(models_module_name)
File "C:Mobile-Security-Framework-MobSF-masterPython27libimportlib__init__.py", line 37, in import_module
__import__(name)
File "C:Mobile-Security-Framework-MobSF-masterPython27libsite-packagesdjangocontribauthmodels.py", line 4, in <module>
from django.contrib.auth.base_user import AbstractBaseUser, BaseUserManager
File "C:Mobile-Security-Framework-MobSF-masterPython27libsite-packagesdjangocontribauthbase_user.py", line 52, in <module>
class AbstractBaseUser(models.Model):
File "C:Mobile-Security-Framework-MobSF-masterPython27libsite-packagesdjangodbmodelsbase.py", line 124, in __new__
new_class.add_to_class('_meta', Options(meta, app_label))
File "C:Mobile-Security-Framework-MobSF-masterPython27libsite-packagesdjangodbmodelsbase.py", line 325, in add_to_class
value.contribute_to_class(cls, name)
File "C:Mobile-Security-Framework-MobSF-masterPython27libsite-packagesdjangodbmodelsoptions.py", line 214, in contribute_to_class
self.db_table = truncate_name(self.db_table, connection.ops.max_name_length())
File "C:Mobile-Security-Framework-MobSF-masterPython27libsite-packagesdjangodb__init__.py", line 33, in __getattr__
return getattr(connections[DEFAULT_DB_ALIAS], item)
File "C:Mobile-Security-Framework-MobSF-masterPython27libsite-packagesdjangodbutils.py", line 211, in __getitem__
backend = load_backend(db['ENGINE'])
File "C:Mobile-Security-Framework-MobSF-masterPython27libsite-packagesdjangodbutils.py", line 134, in load_backend
raise ImproperlyConfigured(error_msg)
django.core.exceptions.ImproperlyConfigured: 'django.db.backends.postgresql' isn't an available database backend.
Try using 'django.db.backends.XXX', where XXX is one of:
'mysql', 'oracle', 'sqlite3'
Error was: No module named postgresql.base
漂亮的自我解释。
请参阅:No module named postgresql.base
安装PostgreSQL,并正确配置或使用默认的SQLite3后端。