I am editing a Django 1.1 basic static website’s urls.py with nothing in the views.py file.
Does this effect SEO in anyway ? Anything bad about redirecting this way ?
from django.views.generic.base import RedirectView
urlpatterns = (
Since this is unrelated to Django, I think you’ll be better served searching for SEO and Redirects. Here’s one result. In it, it discusses various redirects via the status code. The
RedirectView allows you to return a 301 or 302 via the permanent property. You could subclass that view and adjust it so that it’ll use the status code you find is most appropriate too.