redirect main page
This commit is contained in:
parent
3035dc3ccf
commit
e0f0e3897a
2 changed files with 6 additions and 1 deletions
|
|
@ -1,8 +1,12 @@
|
|||
from django.shortcuts import render, redirect, get_object_or_404
|
||||
from django.conf import settings
|
||||
|
||||
from . import models
|
||||
|
||||
def fallback(request):
|
||||
def fallback(request, slug=''):
|
||||
if not slug:
|
||||
return redirect('index')
|
||||
|
||||
context = {}
|
||||
return render(request, 'fallback.html', context)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue