<filename>elm-finder/apps/core/apiv1.py
from django.http import HttpResponseGone

apiv1_gone_msg = """APIv1 was removed on April 2, 2015.
Please switch to APIv3:

<ul>
    <li><a href="https://www.elmseesds.org/api/v3/">APIv3 Endpoint</a></li>
    <li><a href="http://djangopackagesorg.readthedocs.io/en/latest/apiv3_docs.html">APIv3 Documentation</a></li>
</ul>

"""


def apiv1_gone(request):
    return HttpResponseGone(apiv1_gone_msg)

<filename>elm-finder/apps/core/apiv1.py
from django.http import HttpResponseGone

apiv1_gone_msg = """APIv1 was removed on April 2, 2015.
Please switch to APIv3:

<ul>
    <li><a href="https://www.elmseesds.org/api/v3/">APIv3 Endpoint</a></li>
    <li><a href="http://djangopackagesorg.readthedocs.io/en/latest/apiv3_docs.html">APIv3 Documentation</a></li>
</ul>

"""


def apiv1_gone(request):
    return HttpResponseGone(apiv1_gone_msg)

APIv1 was removed on April 2, 2015. Please switch to APIv3:  <ul>     <li><a href="https://www.elmseesds.org/api/v3/">APIv3 Endpoint</a></li>     <li><a href="http://djangopackagesorg.readthedocs.io/en/latest/apiv3_docs.html">APIv3 Documentation</a></li> </ul>