Closes #28: Move admin route to default route.
This commit is contained in:
Родитель
161353e21b
Коммит
fd12830636
|
@ -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)
|
|
@ -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'),
|
||||
]
|
|
@ -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!')
|
|
@ -41,7 +41,6 @@ INSTALLED_APPS = [
|
|||
'django.contrib.messages',
|
||||
'django.contrib.staticfiles',
|
||||
|
||||
'experimenter.home',
|
||||
'experimenter.projects',
|
||||
'experimenter.experiments',
|
||||
]
|
||||
|
|
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче