Source code for the modding-openmw.com website https://modding-openmw.com/
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
@cache_page(settings.CACHE_MIDDLEWARE_SECONDS)
def robots_txt(request):
return HttpResponse(
"""User-agent: *
Disallow: /""",
content_type="text/plain",
)
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)