Source code for the website
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
559 B

from django.conf import settings
from django.http import HttpResponse
from django.shortcuts import redirect, render
from django.views.decorators.cache import cache_page
def robots_txt(request):
return HttpResponse(
"""User-agent: *
Disallow: /""",
def legacy_url_redirect(request, new_slug, new_view="mod_detail", **kwargs):
return redirect(new_view, slug=new_slug, **kwargs)
def static_view(request, template):
return render(request, template)