Skip to content
This repository has been archived by the owner on Mar 22, 2023. It is now read-only.

Commit

Permalink
#1 remove references to map
Browse files Browse the repository at this point in the history
  • Loading branch information
Florian Mayer authored and Florian Mayer committed Jul 27, 2020
1 parent 8cefc7e commit 2b6aa28
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 19 deletions.
4 changes: 2 additions & 2 deletions config/settings/common.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
"""
Django settings for WAStD project.
Django settings for TSC project.
For more information on this file, see
https://docs.djangoproject.com/en/dev/topics/settings/
Expand Down Expand Up @@ -792,7 +792,7 @@

# Error reporting

TSC_RELEASE = env("TSC_RELEASE", default="master")
TSC_RELEASE = env("TSC_RELEASE", default="main")
if env('SENTRY_DSN', False):
# RAVEN_CONFIG = {'dsn': env('SENTRY_DSN')}
sentry_sdk.init(
Expand Down
4 changes: 2 additions & 2 deletions config/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
actions.add_to_site(site)

urlpatterns = [
path('', cache_page(60 * 60)(TemplateView.as_view(template_name='pages/index.html')), name='home'),
path('map/', cache_page(60 * 60)(wastd_views.HomeView.as_view()), name='map'),
path('', TemplateView.as_view(template_name='pages/index.html'), name='home'),
# path('map/', cache_page(60 * 60)(wastd_views.HomeView.as_view()), name='map'),
path('healthcheck/', TemplateView.as_view(template_name='pages/healthcheck.html'), name='healthcheck'),

path(settings.ADMIN_URL, admin.site.urls),
Expand Down
6 changes: 0 additions & 6 deletions occurrence/tests/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -493,12 +493,6 @@ def test_healthcheck_loads(self):
self.assertEqual(response.status_code, 200)
self.assertTemplateUsed(response, 'pages/healthcheck.html')

def test_map_loads(self):
"""Test map page."""
response = self.client.get(reverse("map"))
self.assertEqual(response.status_code, 200)
self.assertTemplateUsed(response, 'pages/map.html')

def test_tae_absolute_admin_url_loads(self):
"""Test absolute admin url."""
response = self.client.get(self.tae.absolute_admin_url)
Expand Down
9 changes: 0 additions & 9 deletions shared/templates/shared/navbar.html
Original file line number Diff line number Diff line change
Expand Up @@ -268,15 +268,6 @@ <h2>{{ settings.SITE_TITLE }}</h2>
</div>
</li>

<!--
<li class="nav-item">
<a class="nav-link" href="{% url 'map' %}"
title="Map {{ settings.SITE_NAME }}">
<span class="oi oi-globe" aria-hidden="true"></span>
Map
</a>
</li>
-->

<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="/"
Expand Down

0 comments on commit 2b6aa28

Please sign in to comment.