We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fa89b7d commit f69668bCopy full SHA for f69668b
tests.py
@@ -1,6 +1,7 @@
1
#!/usr/bin/env python
2
import os
3
import sys
4
+import warnings
5
import django
6
7
BASE_PATH = os.path.dirname(__file__)
@@ -12,6 +13,9 @@ def main():
12
13
You can play with a django model without a complete django app installation.
14
http://www.djangosnippets.org/snippets/1044/
15
"""
16
+ warnings.filterwarnings("always", category=DeprecationWarning)
17
+ warnings.filterwarnings("always", category=PendingDeprecationWarning)
18
+
19
os.environ["DJANGO_SETTINGS_MODULE"] = "django.conf.global_settings"
20
from django.conf import global_settings
21
0 commit comments