From 6dc055cdea1624287bae7072a8d0733c734b9337 Mon Sep 17 00:00:00 2001 From: Josiah Seaman Date: Tue, 20 Aug 2019 12:21:50 +0100 Subject: [PATCH] #23 Testing Travis builds with Django: removed erroneous django_template mention --- .travis.yml | 6 ++++-- manage.py | 2 +- vgbrowser/wsgi.py | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index 8f84092..4124860 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,7 +3,7 @@ dist: xenial language: python python: - - 3.7 + - 3.7.3 # Command to install dependencies, e.g. pip install -r requirements_dev.txt --use-mirrors install: @@ -12,6 +12,8 @@ install: env: - DJANGO_VERSION=2.2.1 + - DJANGO_SETTINGS_MODULE=vgbrowser.settings # Command to run tests, e.g. python setup.py test -script: python -m unittest \ No newline at end of file +script: + - python -m unittest \ No newline at end of file diff --git a/manage.py b/manage.py index da37aa7..1e0fa30 100644 --- a/manage.py +++ b/manage.py @@ -5,7 +5,7 @@ def main(): - os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'django_template.settings') + os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'vgbrowser.settings') try: from django.core.management import execute_from_command_line except ImportError as exc: diff --git a/vgbrowser/wsgi.py b/vgbrowser/wsgi.py index 5a62e99..9a454b9 100644 --- a/vgbrowser/wsgi.py +++ b/vgbrowser/wsgi.py @@ -11,6 +11,6 @@ from django.core.wsgi import get_wsgi_application -os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'django_template.settings') +os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'vgbrowser.settings') application = get_wsgi_application()