From fd128306368999773859d348fd3326652d20ad15 Mon Sep 17 00:00:00 2001 From: Marina Samuel Date: Fri, 28 Apr 2017 11:46:44 -0400 Subject: [PATCH] Closes #28: Move admin route to default route. --- app/experimenter/home/__init__.py | 0 app/experimenter/home/tests.py | 9 --------- app/experimenter/home/urls.py | 7 ------- app/experimenter/home/views.py | 8 -------- app/experimenter/settings.py | 1 - app/experimenter/urls.py | 5 ++--- 6 files changed, 2 insertions(+), 28 deletions(-) delete mode 100644 app/experimenter/home/__init__.py delete mode 100644 app/experimenter/home/tests.py delete mode 100644 app/experimenter/home/urls.py delete mode 100644 app/experimenter/home/views.py diff --git a/app/experimenter/home/__init__.py b/app/experimenter/home/__init__.py deleted file mode 100644 index e69de29bb..000000000 diff --git a/app/experimenter/home/tests.py b/app/experimenter/home/tests.py deleted file mode 100644 index 8c83f275a..000000000 --- a/app/experimenter/home/tests.py +++ /dev/null @@ -1,9 +0,0 @@ -from django.test import TestCase -from django.core.urlresolvers import reverse - - -class CounterTest(TestCase): - - def test_counter_returns_value(self): - response = self.client.get(reverse('home-landing')) - self.assertTrue(response.status_code, 200) diff --git a/app/experimenter/home/urls.py b/app/experimenter/home/urls.py deleted file mode 100644 index eacb57852..000000000 --- a/app/experimenter/home/urls.py +++ /dev/null @@ -1,7 +0,0 @@ -from django.conf.urls import url - -from experimenter.home.views import LandingView - -urlpatterns = [ - url(r'^$', LandingView.as_view(), name='home-landing'), -] diff --git a/app/experimenter/home/views.py b/app/experimenter/home/views.py deleted file mode 100644 index caf85638d..000000000 --- a/app/experimenter/home/views.py +++ /dev/null @@ -1,8 +0,0 @@ -from django.views.generic import View -from django.http import HttpResponse - - -class LandingView(View): - - def get(self, request): - return HttpResponse('Let\'s Experiment!') diff --git a/app/experimenter/settings.py b/app/experimenter/settings.py index a6efe9868..de794eb2a 100644 --- a/app/experimenter/settings.py +++ b/app/experimenter/settings.py @@ -41,7 +41,6 @@ INSTALLED_APPS = [ 'django.contrib.messages', 'django.contrib.staticfiles', - 'experimenter.home', 'experimenter.projects', 'experimenter.experiments', ] diff --git a/app/experimenter/urls.py b/app/experimenter/urls.py index 9a2b20a65..4d17db597 100644 --- a/app/experimenter/urls.py +++ b/app/experimenter/urls.py @@ -1,12 +1,11 @@ from django.conf import settings -from django.conf.urls import url, include +from django.conf.urls import url from django.conf.urls.static import static from django.contrib import admin urlpatterns = [ - url(r'^admin/', admin.site.urls), - url(r'^', include('experimenter.home.urls')), + url(r'^', admin.site.urls), ] if settings.DEBUG: # pragma: no cover