From 347521f4557091a36a6a58d00c46667a12824bfe Mon Sep 17 00:00:00 2001
From: Bryan Brancotte <bryan.brancotte@pasteur.fr>
Date: Tue, 2 Apr 2019 11:33:55 +0200
Subject: [PATCH] make runserver works

---
 tests/settings.py | 2 +-
 tests/urls.py     | 3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/tests/settings.py b/tests/settings.py
index afd5505..07fd217 100644
--- a/tests/settings.py
+++ b/tests/settings.py
@@ -26,7 +26,7 @@ SECRET_KEY = '110qzc77+t2o8cp&ijk!mpxb=*)7v*!xs2pj^t5=#=n*seo$i!'
 # SECURITY WARNING: don't run with debug turned on in production!
 DEBUG = True
 
-ALLOWED_HOSTS = []
+ALLOWED_HOSTS = ['*']
 
 
 # Application definition
diff --git a/tests/urls.py b/tests/urls.py
index ba23856..7361222 100644
--- a/tests/urls.py
+++ b/tests/urls.py
@@ -1,5 +1,6 @@
 from django.http import HttpResponse
 from django.urls import path, include
+from django.views.generic import TemplateView
 
 
 def blabla(request):
@@ -7,6 +8,6 @@ def blabla(request):
 
 
 urlpatterns = [
-    path('', blabla, name='home'),
+    path('', TemplateView.as_view(template_name='basetheme_bootstrap/base4.html'), name='home'),
     path('', include('basetheme_bootstrap.urls')),
 ]
-- 
GitLab