mirror of
https://github.com/status-im/cabot.git
synced 2025-02-24 10:28:06 +00:00
Update old django settings
Use the new test runner Discover Runner and no longer specify autocommit as it's on by default now
This commit is contained in:
parent
9a4c723ea0
commit
5afd50fcf0
@ -22,8 +22,7 @@ if os.environ.get('CABOT_FROM_EMAIL'):
|
|||||||
|
|
||||||
DATABASES = {'default': dj_database_url.parse(os.environ["DATABASE_URL"])}
|
DATABASES = {'default': dj_database_url.parse(os.environ["DATABASE_URL"])}
|
||||||
|
|
||||||
if not DEBUG:
|
TEST_RUNNER = 'django.test.runner.DiscoverRunner'
|
||||||
DATABASES['default']['OPTIONS'] = {'autocommit': True}
|
|
||||||
|
|
||||||
URL_PREFIX = os.environ.get('URL_PREFIX', '/').rstrip("/")
|
URL_PREFIX = os.environ.get('URL_PREFIX', '/').rstrip("/")
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@ amqp<2.0
|
|||||||
anyjson==0.3.3
|
anyjson==0.3.3
|
||||||
argparse==1.2.1
|
argparse==1.2.1
|
||||||
celery[redis]==3.1.23
|
celery[redis]==3.1.23
|
||||||
dj-database-url==0.2.2
|
dj-database-url==0.4.2
|
||||||
django-appconf==0.6
|
django-appconf==0.6
|
||||||
django-celery==3.1.17
|
django-celery==3.1.17
|
||||||
django-compressor==1.4
|
django-compressor==1.4
|
||||||
|
Loading…
x
Reference in New Issue
Block a user