chore: remove unused view (#6304)
* chore: remove unused view * chore: deflake * chore: deflake
This commit is contained in:
parent
bc5c411673
commit
20f427e013
|
@ -1,7 +1,5 @@
|
||||||
# Copyright The IETF Trust 2007, All Rights Reserved
|
# Copyright The IETF Trust 2007, All Rights Reserved
|
||||||
|
|
||||||
import os
|
|
||||||
|
|
||||||
from django.shortcuts import get_object_or_404, render
|
from django.shortcuts import get_object_or_404, render
|
||||||
|
|
||||||
import debug # pyflakes:ignore
|
import debug # pyflakes:ignore
|
||||||
|
@ -30,11 +28,3 @@ def state(request, doc, type=None):
|
||||||
statetype = get_object_or_404(StateType, slug=slug)
|
statetype = get_object_or_404(StateType, slug=slug)
|
||||||
states = State.objects.filter(used=True, type=statetype).order_by('order')
|
states = State.objects.filter(used=True, type=statetype).order_by('order')
|
||||||
return render(request, 'help/states.html', {"doc": doc, "type": statetype, "states":states} )
|
return render(request, 'help/states.html', {"doc": doc, "type": statetype, "states":states} )
|
||||||
|
|
||||||
def environment(request):
|
|
||||||
if request.is_secure():
|
|
||||||
os.environ['SCHEME'] = "https"
|
|
||||||
else:
|
|
||||||
os.environ['SCHEME'] = "http"
|
|
||||||
os.environ["URL"] = request.build_absolute_uri(".")
|
|
||||||
return render(request, 'help/environment.html', {"env": os.environ} )
|
|
||||||
|
|
|
@ -14,7 +14,6 @@ import debug # pyflakes:ignore
|
||||||
|
|
||||||
from ietf.doc import views_search
|
from ietf.doc import views_search
|
||||||
from ietf.group.urls import group_urls, grouptype_urls, stream_urls
|
from ietf.group.urls import group_urls, grouptype_urls, stream_urls
|
||||||
from ietf.help import views as help_views
|
|
||||||
from ietf.ipr.sitemaps import IPRMap
|
from ietf.ipr.sitemaps import IPRMap
|
||||||
from ietf.liaisons.sitemaps import LiaisonMap
|
from ietf.liaisons.sitemaps import LiaisonMap
|
||||||
from ietf.utils.urls import url
|
from ietf.utils.urls import url
|
||||||
|
@ -85,7 +84,6 @@ if settings.SERVER_MODE in ('development', 'test'):
|
||||||
urlpatterns += staticfiles_urlpatterns()
|
urlpatterns += staticfiles_urlpatterns()
|
||||||
urlpatterns += [
|
urlpatterns += [
|
||||||
url(r'^_test500/$', server_error), #utils_views.exception),
|
url(r'^_test500/$', server_error), #utils_views.exception),
|
||||||
url(r'^environment/$', help_views.environment),
|
|
||||||
## maybe preserve some static legacy URLs ?
|
## maybe preserve some static legacy URLs ?
|
||||||
url(r'^(?P<path>(?:images|css|js)/.*)$', static_view.serve, {'document_root': settings.STATIC_ROOT+'ietf/'}),
|
url(r'^(?P<path>(?:images|css|js)/.*)$', static_view.serve, {'document_root': settings.STATIC_ROOT+'ietf/'}),
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in a new issue