mirror of
https://github.com/jazzband/django-analytical.git
synced 2026-03-16 22:20:25 +00:00
Configure django before using it
This commit is contained in:
parent
7f039cce3f
commit
29a18306bb
1 changed files with 5 additions and 0 deletions
5
setup.py
5
setup.py
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Reference in a new issue