EncryptionManagerTest question

Hello~
When I build up my develop environment,I want to run the unit test EncryptionManagerTest.
But when I run the test case,it throw a error:

Traceback (most recent call last):
File “/Applications/PyCharm.app/Contents/helpers/pydev/pydevd.py”, line 1668, in
main()
File “/Applications/PyCharm.app/Contents/helpers/pydev/pydevd.py”, line 1662, in main
globals = debugger.run(setup[‘file’], None, None, is_module)
File “/Applications/PyCharm.app/Contents/helpers/pydev/pydevd.py”, line 1072, in run
pydev_imports.execfile(file, globals, locals) # execute the script
File “/Applications/PyCharm.app/Contents/helpers/pycharm/_jb_pytest_runner.py”, line 31, in
pytest.main(args, plugins_to_load)
File “/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/_pytest/config.py”, line 49, in main
config = _prepareconfig(args, plugins)
File “/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/_pytest/config.py”, line 164, in _prepareconfig
pluginmanager=pluginmanager, args=args)
File “/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/_pytest/vendored_packages/pluggy.py”, line 745, in call
return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)
File “/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/_pytest/vendored_packages/pluggy.py”, line 339, in _hookexec
return self._inner_hookexec(hook, methods, kwargs)
File “/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/_pytest/vendored_packages/pluggy.py”, line 334, in
_MultiCall(methods, kwargs, hook.spec_opts).execute()
File “/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/_pytest/vendored_packages/pluggy.py”, line 613, in execute
return _wrapped_call(hook_impl.function(*args), self.execute)
File “/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/_pytest/vendored_packages/pluggy.py”, line 250, in _wrapped_call
wrap_controller.send(call_outcome)
File “/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/_pytest/helpconfig.py”, line 67, in pytest_cmdline_parse
config = outcome.get_result()
File “/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/_pytest/vendored_packages/pluggy.py”, line 280, in get_result
_reraise(*ex) # noqa
File “/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/_pytest/vendored_packages/pluggy.py”, line 265, in init
self.result = func()
File “/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/_pytest/vendored_packages/pluggy.py”, line 614, in execute
res = hook_impl.function(*args)
File “/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/_pytest/config.py”, line 934, in pytest_cmdline_parse
self.parse(args)
File “/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/_pytest/config.py”, line 1106, in parse
self._preparse(args, addopts=addopts)
File “/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/_pytest/config.py”, line 1077, in _preparse
args=args, parser=self._parser)
File “/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/_pytest/vendored_packages/pluggy.py”, line 745, in call
return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)
File “/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/_pytest/vendored_packages/pluggy.py”, line 339, in _hookexec
return self._inner_hookexec(hook, methods, kwargs)
File “/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/_pytest/vendored_packages/pluggy.py”, line 334, in
_MultiCall(methods, kwargs, hook.spec_opts).execute()
File “/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/_pytest/vendored_packages/pluggy.py”, line 613, in execute
return _wrapped_call(hook_impl.function(*args), self.execute)
File “/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/_pytest/vendored_packages/pluggy.py”, line 254, in _wrapped_call
return call_outcome.get_result()
File “/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/_pytest/vendored_packages/pluggy.py”, line 280, in get_result
_reraise(*ex) # noqa
File “/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/_pytest/vendored_packages/pluggy.py”, line 265, in init
self.result = func()
File “/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/_pytest/vendored_packages/pluggy.py”, line 614, in execute
res = hook_impl.function(*args)
File “/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pytest_django/plugin.py”, line 238, in pytest_load_initial_conftests
_setup_django()
File “/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pytest_django/plugin.py”, line 137, in _setup_django
from django.db.models import get_models
File “/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/db/models/init.py”, line 5, in
from django.db.models.query import Q
File “/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/db/models/query.py”, line 17, in
from django.db.models.deletion import Collector
File “/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/db/models/deletion.py”, line 4, in
from django.db.models import signals, sql
File “/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/db/models/sql/init.py”, line 4, in
from django.db.models.sql.subqueries import *
File “/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/db/models/sql/subqueries.py”, line 12, in
from django.db.models.sql.query import Query
File “/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/db/models/sql/query.py”, line 22, in
from django.db.models.sql import aggregates as base_aggregates_module
File “/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/db/models/sql/aggregates.py”, line 9, in
ordinal_aggregate_field = IntegerField()
File “/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/db/models/fields/init.py”, line 116, in init
self.db_tablespace = db_tablespace or settings.DEFAULT_INDEX_TABLESPACE
File “/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/conf/init.py”, line 54, in getattr
self._setup(name)
File “/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/conf/init.py”, line 47, in _setup
% (desc, ENVIRONMENT_VARIABLE))
django.core.exceptions.ImproperlyConfigured: Requested setting DEFAULT_INDEX_TABLESPACE, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings.

Can you give me an advice?
Thank you very much!