remove debug
This commit is contained in:
parent
52e57a3994
commit
52be4753c4
1 changed files with 0 additions and 2 deletions
|
@ -18,7 +18,6 @@ def index(request):
|
||||||
return render(request, 'index.html', context)
|
return render(request, 'index.html', context)
|
||||||
|
|
||||||
def page(request, slug=''):
|
def page(request, slug=''):
|
||||||
print('page!!', slug)
|
|
||||||
context = {}
|
context = {}
|
||||||
if slug == "":
|
if slug == "":
|
||||||
return index(request)
|
return index(request)
|
||||||
|
@ -44,7 +43,6 @@ def texts(request):
|
||||||
return render(request, 'texts.html', context)
|
return render(request, 'texts.html', context)
|
||||||
|
|
||||||
def text(request, slug):
|
def text(request, slug):
|
||||||
print('find text', slug)
|
|
||||||
context = {}
|
context = {}
|
||||||
if request.user.is_staff:
|
if request.user.is_staff:
|
||||||
context['text'] = get_object_or_404(models.Text, slug=slug)
|
context['text'] = get_object_or_404(models.Text, slug=slug)
|
||||||
|
|
Loading…
Reference in a new issue