Configure django before using it

This commit is contained in:
Hugo Osvaldo Barrera 2015-12-05 12:47:28 -03:00
parent 7f039cce3f
commit 29a18306bb

View file

@ -47,6 +47,11 @@ def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
import django
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "analytical.tests.settings")
django.setup()
import analytical
setup(