Skip to content

Commit 424a10f

Browse files
committed
Fix and clean up sandbox dependencies
1 parent 8f0e701 commit 424a10f

File tree

2 files changed

+6
-12
lines changed

2 files changed

+6
-12
lines changed

sandbox/requirements.txt

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,8 @@
1-
asn1crypto==0.24.0
2-
cffi==1.12.2
1+
cffi==1.14.6
32
cryptography==3.3.2
4-
dj-database-url==0.4.1
5-
Django==2.1.5
3+
Django==2.2.19
64
django-argonauts==1.2.0
75
django-debug-toolbar==1.11
8-
gunicorn==19.6.0
9-
pkg-resources==0.0.0
10-
psycopg2==2.7
116
pycparser==2.19
127
python-u2flib-server==5.0.0
138
pytz==2018.9

sandbox/test_django_mfa/settings.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
"""
1212

1313
import os
14-
import dj_database_url
1514

1615
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
1716
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
@@ -134,11 +133,11 @@
134133

135134
ALLOWED_HOSTS = ['*']
136135

137-
138136
DATABASES = {
139-
'default': dj_database_url.config(
140-
default='sqlite:////{0}'.format(os.path.join(BASE_DIR, 'db.sqlite3'))
141-
)
137+
'default': {
138+
'ENGINE': 'django.db.backends.sqlite3',
139+
'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
140+
}
142141
}
143142

144143
SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')

0 commit comments

Comments
 (0)